Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] displaying executed commands in shell scripts
- Date: Fri, 08 Jun 2007 14:12:59 +0900
- From: "Erin D. Hughes" <erin-hughes@example.com>
- Subject: Re: [tlug] displaying executed commands in shell scripts
- References: <a96ae3bb0706072143x7a10cd22kf1d86aca73b97cbf@mail.gmail.com>
- Organization: UNIX TEAM ZERO
- User-agent: Thunderbird 1.5.0.10 (X11/20070302)
Hector Akamine wrote:Hi,
Is there any way to make the shell console display the commands executed when a shell script is invoked? For example, if I write a shell script that contains the command "ls" and I run it, only the output of the command (in this case the current directory's files) is displayed on the console window, but not the invoked command ("ls"), I would like the latter displayed too.
Maybe try this.
<poor attempt at code> #!/bin/bash
echo ls ls
exit
</poor attempt at code>
I am the worst person to give advice on programing but if it is just a simple bash script like that you could probably just echo what ever the command you are going to run.
This is what I use for a reference and is really good way to get started.
BASH Programming - Introduction HOW-TO
http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html
Also the Advanced Bash-Scripting Guide is good once you get the basics
http://tldp.org/LDP/abs/html/
E./
- Follow-Ups:
- Re: [tlug] displaying executed commands in shell scripts
- From: Hector Akamine
- References:
- [tlug] displaying executed commands in shell scripts
- From: Hector Akamine
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] displaying executed commands in shell scripts
- Next by Date: Re: [tlug] displaying executed commands in shell scripts
- Previous by thread: Re: [tlug] displaying executed commands in shell scripts
- Next by thread: Re: [tlug] displaying executed commands in shell scripts
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links