help with basic shell scripting

Joined
Jun 11, 2007
Messages
3
Reaction score
0
Points
1
Hi,

I'm pretty new to unix, I'm trying to automate some basic shell commands.

I would like to be able to double-click in icon in Mac OS X and have the following commands run:

$ ssh [email protected] esd

$ esdrec | esdcat -s 192.168.2.9

The first starts the remote box listening for an esound connection, the second command starts the esound server on my Mac. When I run either of these manually from terminal(s), the commands are executed and the terminal cursor flashes without giving me a new command prompt, which is fine. I.E. I have to run them in separate windows.

Ideally, I'd like to just click an icon, have both run and not need terminal windows up. I know that if I run the second command on the Mac, then close the terminal, the process ends.

I've tried making basic shell scripts (with .command and executable permissions), using Automator, etc., and can't seem to get it right. Any suggestions?

thanks!

Justin

Macbook Pro, 10.4.9
ssh-ing to an Ubuntu Feisty box.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top