On Saturday 09 February 2002 13:01 pm, Rohan Almeida wrote:
> Amarendra Godbole (Intl Vendor) wrote:
> > > kill $( ps ax | awk ' /process-name/ { print $1 }')
>
> IS it 3 processes or 2?I believe you are quoting me. ;-) It is two - ps and awk. kill is a shell built-in, so no new process is spawned to execute it. There is a /bin/kill as well, but shell built-ins have precedence. To execute /bin/kill, either give the full path or run as command kill -TERM pid1 pid2 ... >From bash's help page on kill: Kill is a shell builtin for two reasons: it allows job IDs to be used instead of process IDs, and, if you have reached the limit on processes that you can create, you don't have to start a process to kill another one. Binand _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
