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 me@ esd

$ esdrec | esdcat -s

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?



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