Shell script is working fine when I use it in command prompt. Only when I used it in Perl, it gives additional count. Here is the shell command that I used inside the program, ps -f -u $userid | tr -s " " | cut -f9-20 -d" " | grep -v "grep" | grep -v "vi " | grep -v "view" | grep -c $1 It shows the following processes(Only in Perl), sh /test/xyz abcd /usr/bin/perl ./abcd.pl
In reply to Re: sounds like the shell script is buggy
by Perlraja
in thread Reaped:
by NodeReaper
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |