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";
In reply to redirecting standard output and standard error by s_gaurav1091
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |