perl.beginners
[Top] [All Lists]

perl stdout errors due to called script does not exist

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>