US: 1-941-4621-069
  
Cyprus: 3-572-2052-781

Go Back   ISPsystem.com Forums > ISPmanager > Troubleshooting

Notices

Reply
 
Thread Tools
Old 02-02-2011, 08:53 PM   #1
Junior Member
 
Join Date: Feb 2011
Posts: 1
logart is on a distinguished road
Default 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?
logart is offline   Reply With Quote
Old 02-03-2011, 01:43 AM   #2
ISPsystem team
 
slava's Avatar
 
Join Date: May 2008
Location: ISPsystem
Posts: 588
slava is on a distinguished road
Default

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
slava is offline   Reply With Quote
Old 02-05-2011, 02:03 AM   #3
Junior Member
 
Join Date: Feb 2011
Posts: 5
kanum is on a distinguished road
Default

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
Attached Images
File Type: png pipe.png (10.1 KB, 6 views)
kanum is offline   Reply With Quote
Old 02-05-2011, 05:34 PM   #4
ISPsystem team
 
Join Date: Oct 2009
Posts: 118
vian is on a distinguished road
Default

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.
vian is offline   Reply With Quote
Old 02-12-2011, 05:59 AM   #5
Junior Member
 
Join Date: Feb 2011
Posts: 5
kanum is on a distinguished road
Default

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 is offline   Reply With Quote
Old 02-17-2011, 09:05 PM   #6
Junior Member
 
Join Date: Feb 2011
Posts: 5
kanum is on a distinguished road
Default

No one? How I can get this work?
kanum is offline   Reply With Quote
Old 02-18-2011, 03:08 AM   #7
ISPsystem team
 
Join Date: Oct 2009
Posts: 118
vian is on a distinguished road
Default

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
vian is offline   Reply With Quote
Old 02-18-2011, 06:35 AM   #8
Junior Member
 
Join Date: Feb 2011
Posts: 5
kanum is on a distinguished road
Default

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
Attached Files
File Type: zip script.zip (366 Bytes, 0 views)

Last edited by kanum; 02-18-2011 at 02:53 PM.
kanum is offline   Reply With Quote
Old 02-21-2011, 05:42 AM   #9
Junior Member
 
Join Date: Feb 2011
Posts: 5
kanum is on a distinguished road
Default

Finally I think I resolve this

Issue Resolve
kanum is offline   Reply With Quote
Reply

Tags
email, forward, pipe, script

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 11:54 PM.