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

Re: commands within shell script



On Tue, 2003-03-04 at 13:47, Nori Heikkinen wrote:
> 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?

Maybe you are talking about this:
  #!/bin/bash -v
  for i in 1 2 3 4 5;
  do
      echo foobar${i} ;
  done
  echo $HOME ; echo $LANG

The "-v" makes it happen.

-- 
+-----------------------------------------------------------+
| Ron Johnson, Jr.     Home: ron.l.johnson@cox.net          |
| Jefferson, LA  USA   http://members.cox.net/ron.l.johnson |
|                                                           |
| The difference between Rock&Roll and Country Music?       |
| Old Rockers still on tour are pathetic, but old Country   |
| signers are still great.                                  |
+-----------------------------------------------------------+



Reply to: