Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Apple X11: multiple commands in one application menu entry

Apple X11: multiple commands in one application menu entry
Thread Tools
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status: Offline
Reply With Quote
Feb 10, 2003, 05:34 PM
 
OK, I am having great fun with the new Apple X11 0.2 beta. There's just one thing that makes me go bananas.

I have countless remote login aliases like

% cat .zshrc
alias lab="ssh simon@lab_server.gov -XC"

because I'm too lazy to type it all. Now to run such commands from the application menu in X11 I would need the ability of doing two commands one after the other, because ssh needs a terminal to work in - even if I don't have one opened when I select the menu entry.

I wanted to do a menu enty like
xterm; lab
which would open a terminal and then do the lab which is aliased to the ssh login.

In the OS X terminal or in other UNIXes doind two commands on one line is done with a ;

I wanted to do this in Apple's X11 but it didn't work. Does anybody here have an idea why it doesn't and what I could co to get it to work?

Thanks in advance for any help.
     
Junior Member
Join Date: Jan 2003
Status: Offline
Reply With Quote
Feb 10, 2003, 11:13 PM
 
You might want to give:

xterm -e ssh yadda yadda

a shot.
     
Fresh-Faced Recruit
Join Date: Feb 2003
Status: Offline
Reply With Quote
Feb 11, 2003, 12:52 PM
 
I have found that the easiest way to do this is to create executable shell scripts in my ~/bin directory which I then place in the application menu. This makes them easier to edit and allows me to not worry about their possible loss during upgrades of X11.app.
     
Simon  (op)
Posting Junkie
Join Date: Nov 2000
Location: in front of my Mac
Status: Offline
Reply With Quote
Feb 11, 2003, 04:27 PM
 
Originally posted by Tritium:
You might want to give:

xterm -e ssh yadda yadda

a shot.
Thanks a million. Worked perfectly.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:34 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2