[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: commands within shell script



* Nori Heikkinen <nori@sccs.swarthmore.edu> [20030304 12:11 PST]:
> hey,
> 
> by default, a shell script just appears as the script name in a list
> of processes (ps; top), right?  how can i make it show each command
> called within the script as it's being executed?

It already is.  For each program called from the script, the shell forks
and execs a new process, which shows up in the process list.  Of course,
you won't see shell builtin commands in the process list, just the shell
name and script name.

good times,
Vineet
-- 
http://www.doorstop.net/
-- 
"Those who desire to give up freedom in order to gain security will not
have, nor do they deserve, either one."  --President Thomas Jefferson

Attachment: signature.asc
Description: Digital signature


Reply to: