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 |
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 |
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 ps: error in attach Thanks |
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. |
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 |
No one? How I can get this work?
|
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
|
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 |
Finally I think I resolve this :D
Issue Resolve |
All times are GMT +2. The time now is 06:47 PM. |
Powered by vBulletin® Version 3.8.9
Copyright ©2000 - 2024, vBulletin Solutions, Inc.