ISPsystem.com Forums

ISPsystem.com Forums (http://forum.ispsystem.com//index.php)
-   Troubleshooting (http://forum.ispsystem.com//forumdisplay.php?f=11)
-   -   Script not found when trying to pipe email (http://forum.ispsystem.com//showthread.php?t=1318)

logart 02-02-2011 08:53 PM

Script not found when trying to pipe email
 
Hello,

I am trying to pipe a user email address to a WHMCS script but when I try to configure the pipe as "send to script" ISP keeps telling me:

Error: Script does not exist

I have verified the file exists. Here is the value I am entering into the "Script" field:

Code:

/usr/bin/php -q /var/www/logart/data/www/mydomain.com/www/cms/pipe/pipe.php
Any ideas?

slava 02-03-2011 01:43 AM

This field should be one file name to which the message sent through the pipe, and not the command with a list of variables

You need use this command as one file such as .sh files or other executable scripts at first line of PHP-scrtipt

#!/usr/bin/php -q

and chmod +x pipe.php for run this

kanum 02-05-2011 02:03 AM

1 Attachment(s)
Hello all!

My first post here: and let me tell, until now I really love ispmanager :)

I have the same issue, to create a pipe for hostbill:

My code is:

Code:

| php -q /var/www/myuser/data/www/mydomain.net/clientes/admin/pipe.php
I have tried the sugest made by "slava"

ps: error in attach

Thanks

vian 02-05-2011 05:34 PM

You should create a script like follows:

#!/bin/sh
php -q /var/www/myuser/data/www/mydomain.net/clientes/admin/pipe.php

Put it inside user's home directory. Let it's name be script.sh. Finally enter "script.sh" in Script field at the window.

kanum 02-12-2011 05:59 AM

Hi,

sorry for late reply.

I have create the script, with name "script.sh" or I need and some extension? And in home user directory what to you mean? I but in /var/www/myuser/ and not work. put in /var/www/myuser/data/ not work. Whats is the folder I need put the script?

Thanks

kanum 02-17-2011 09:05 PM

No one? How I can get this work?

vian 02-18-2011 03:08 AM

You need to put script in user home folder. If you have Linux it will be /var/www/<username>/data. On freebsd it is /home/<username>/data. Where <username> is the name of user

kanum 02-18-2011 06:35 AM

1 Attachment(s)
Its seems this not what work :( Propaly I do something wrong, can you please see if some is wrong on script?

I have try with, script.sh and script.sh.php (for name and extension)

On attach as the two script. I have but the file(s) in

/var/www/myusername/data

Please, see if some is wrong

kanum 02-21-2011 05:42 AM

Finally I think I resolve this :D

Issue Resolve


All times are GMT +2. The time now is 02:00 PM.

Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.