MACSCRPT Archives

June 2007

MACSCRPT@LISTSERV.DARTMOUTH.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"John A.M. Darnell" <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Fri, 1 Jun 2007 12:03:00 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (38 lines)
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.

ATOM RSS1 RSS2