Re: Applications Menu
Re: Applications Menu
- Subject: Re: Applications Menu
- From: Michèle Garoche <email@hidden>
- Date: Sun, 12 Jan 2003 08:40:59 +0100
Le dimanche, 12 jan 2003, ` 05:23 Europe/Paris, John Rothschild a icrit
:
Can I call a shell script from the Application Menu?
(I couldn't get it to work.) The script does some stuff and
then eventually calls an xterm. Thanks.
Yes, you can. I haven't tried with external parameters, but without it
works fine. Just four things you should be aware of:
1 - Make sure to chmod +x your script
2 - Rehash to make your environment aware of the new script
3 - exec the xterm in the background
4 - Move the new xterm in case it masks the old one as it is focused,
if you want to see the result of the stuff before the creation of new
xterm if any.
Just an example (very very basic):
contents of: ~/bin/mytest1
#!/bin/sh
ls -al
exec xterm -geometry 80x20+34+0 -ls -sb -rightbar -si -sl 10000 -j &
Depending of the way you launch X11, you should have to enter the full
path to the script (here: ~/bin/mytest1) in the X11's App menu.
Michhle
<http://micmacfr.homeunix.org/>
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe: http://www.lists.apple.com/mailman/listinfo/x11-users
Do not post admin requests to the list. They will be ignored.