in reply to Re^2: Executing system command
in thread Executing system command
. Here is a code snippet
#!/usr/bin/perl -w print `date`; print `dfs`; print `date1`;
In the above code, the first line will execute, the second line is referencing my ".alias file" (i guess this is nothing to do with your mailing list alias your are talking about), the third line is an invalid command.
I get the following error as Perl cannot find the commands
Thu Jul 28 00:01:32 CDT 2005 Can't exec "dfs": No such file or directory at sys line 4. Can't exec "date1": No such file or directory at sys line 5.
Is this what you are referring to File or Directory Not Found? Is that the exact error? I am confused because I cannot figure out "what" is "not found" - perl script? or one of the commands inside the perl script? That's why i asked you to put full path for the de command. It could also be that your Perl script cannot be located by your mailing list trigger in which case give it a full path on that alias file
. It will be helpful if you could add some debug statements in your script and say "reached line #: __LINE__" etc. By that you know where it is failing and probably post your code around that if it is too big to post
If the problem is in "executing" the perl script itself then it is probably not perl related and you might want to check our your mailing list app usenet
-SK
|
|---|