s_gaurav1091 has asked for the wisdom of the Perl Monks concerning the following question:
Now when I am running the srcipt and in case the error comes I want only $rc should be printed on screen. But the output is coming like UX:sh (sh): ERROR: java: Not found rc is 256 Can anyone pls sugget as how to hide this error.Thanx in advancemy $rc = system("java -version 2>/dev/null"); print "$rc\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: redirecting standard output and standard error
by Skeeve (Parson) on Sep 04, 2006 at 13:55 UTC | |
|
Re: redirecting standard output and standard error
by shmem (Chancellor) on Sep 04, 2006 at 12:55 UTC | |
|
Re: redirecting standard output and standard error
by holli (Abbot) on Sep 04, 2006 at 13:21 UTC | |
by adrianh (Chancellor) on Sep 04, 2006 at 18:12 UTC | |
|
Re: redirecting standard output and standard error
by graff (Chancellor) on Sep 04, 2006 at 15:06 UTC | |
by Skeeve (Parson) on Sep 04, 2006 at 15:44 UTC | |
|
Re: redirecting standard output and standard error
by OfficeLinebacker (Chaplain) on Sep 04, 2006 at 19:41 UTC |