Mailing List Archive


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

Re: [tlug] displaying executed commands in shell scripts



Hector Akamine asks:

> Is there any way to make the shell console display the commands
> executed when a shell script is invoked? 

    Sure is. 

    Add the -x option either to the first line of the script
 (#!/bin/sh -x) or run the script as /bin/sh -x.

    (I am assuming, of course, that your version of sh is
 under /bin/sh.)

       -Chris



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links