Thread: help with basic shell scripting
06-11-2007, 12:08 PM #1
help with basic shell scripting
- Member Since
- Jun 11, 2007
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@example.com 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?
Macbook Pro, 10.4.9
ssh-ing to an Ubuntu Feisty box.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
By V6Pony in forum OS X - Development and DarwinReplies: 18Last Post: 02-24-2016, 11:39 AM
By ericconn in forum OS X - Operating SystemReplies: 3Last Post: 09-26-2012, 04:08 PM
By mikeb in forum OS X - Development and DarwinReplies: 2Last Post: 03-22-2009, 12:36 PM
By badmuthahubbard in forum OS X - Development and DarwinReplies: 1Last Post: 09-13-2006, 04:16 AM
By AlexN in forum OS X - Operating SystemReplies: 2Last Post: 09-17-2005, 07:08 PM