Subject: | |
From: | |
Reply To: | |
Date: | Fri, 1 Jun 2007 12:03:00 -0500 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Hello everyone:
The cat's away and the mice will play...at least I'm playing with bash
scripting (just because I have the time and I would like to know...). I'm
having a rough time getting off the ground, however. I am writing a very,
very simple script that looks like this:
#!/bin/bash
echo "Hello $USER."
ls
This file is saved as lst.bsh.
I am then executing this very simple script in Terminal with this command:
bash lst.bsh
Nothing happens except that the command prompt returns. I see no echo nor
do I see a file listing.
What fundamental step am I missing?
R,
John A.M. Darnell
Project Leader
Internal Software Development
Walsworth Publishing Company
John may also be reached at johnamdarnell (at) gmail dot com
Question: On what television series was the lirpa first seen, and who used
it?
P.S. Interestingly enough, I went to two separate sources on writing Unix
scripts. Both began immediately discussing how to write scripts, but
neither spent even a sentence on actually running a script, at least not
in the first chapter.
|
|
|