On Thursday, June 27, 2002, at 11:25 , lz wrote:
> Hi guys,
>
> I need to call shell executable from a perl command,
> and here is what I do:
>
> open CRONJOB, "/home/queue/test.sh|" or die "Unable to
generally I put a space between the 'script' and the pipe
eg:
open(CRONJOB, "/home/queue/test.sh |") or die "......
> open test.sh command: $!";
>
> Unfortunately, neither tesh.sh executed nor I get
> "Unable to open test.sh" error message.
and you know that it failed to run because when you did
while(<CRONJOB>) {
print "we see <$_>\n";
}
close(CRONJOB);
and you saw nothing come from your perl code?
ciao
drieux
---
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]