| Subject: | perl stdout errors due to called script does not exist |
|---|---|
| From: | Inetquestion |
| Date: | Wed, 28 Jan 2009 16:25:37 -0800 PST |
| Newsgroups: | perl.beginners |
for the example perl script below is there a way to avoid errors from showing up in stdout if the shell script being called does not exist? The shell script being called is not in the same directory as the perl script, but is in the path. Otherwise I would just do a check to see if it exist before calling it. redirecting the output to /dev/null doesn't seem to work. #!/usr/bin/perl `sm_timeline.sh $0 "socket usage" 2>/dev/null`; print "hello\n"; |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | system("cd /home/tomer/temp") problem, Tomer |
|---|---|
| Next by Date: | Re: perl stdout errors due to called script does not exist, Raymond Wan |
| Previous by Thread: | system("cd /home/tomer/temp") problem, Tomer |
| Next by Thread: | Re: perl stdout errors due to called script does not exist, Raymond Wan |
| Indexes: | [Date] [Thread] [Top] [All Lists] |