Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
help with basic shell scripting
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="jrcal" data-source="post: 412504" data-attributes="member: 32476"><p>Hi, </p><p></p><p>I'm pretty new to unix, I'm trying to automate some basic shell commands. </p><p></p><p>I would like to be able to double-click in icon in Mac OS X and have the following commands run:</p><p></p><p>$ ssh me@192.168.2.9 esd</p><p></p><p>$ esdrec | esdcat -s 192.168.2.9</p><p></p><p>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. </p><p></p><p>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. </p><p></p><p>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?</p><p></p><p>thanks!</p><p></p><p>Justin</p><p></p><p>Macbook Pro, 10.4.9</p><p>ssh-ing to an Ubuntu Feisty box.</p></blockquote><p></p>
[QUOTE="jrcal, post: 412504, member: 32476"] 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 me@192.168.2.9 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. [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
help with basic shell scripting
Top