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:
Dennis Cox <[log in to unmask]>
Reply To:
Macintosh Scripting Systems <[log in to unmask]>
Date:
Fri, 1 Jun 2007 14:11:05 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (39 lines)
> From: 	Macintosh Scripting Systems on behalf of John A.M. Darnell
> Sent: 	Friday, June 1, 2007 12:03 PM
> 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?
> 
> 
---

what happens when you run it with the full path?

$ /bin/bash lst.bsh

Could be that /bin isn't in your $PATH.


Dennis

ATOM RSS1 RSS2