in reply to sounds like the shell script is buggy
in thread Reaped:
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: sounds like the shell script is buggy
by ivancho (Hermit) on May 26, 2005 at 11:13 UTC | |
by Perlraja (Initiate) on May 26, 2005 at 13:17 UTC |