Autostart a script in terminal window?

Alexander Dalloz alexander.dalloz at uni-bielefeld.de
Thu Aug 19 18:50:40 UTC 2004


Am Do, den 19.08.2004 schrieb Brandon Laing um 20:29:

> I'm hoping someone can help me with something. I'm running FC2 currently, and have set up a few shortcuts
> on the desktop that point to a shell script. This shell script in turn starts a python script. Naturally then, I have
> these shortcuts set up to run in a terminal window so I can watch the results and see what happens. 

shortcut -> shell script -> python script?

For what do you need the shortcut? From following paragraph I understand
you want an autostart rather than a manual start using a shortcut

Why not directly executing the python script but to call it from a
wrapper script?

> So, what I'm looking to try and do is get these to start automatically after Gnome finishes loading. I need them
> to come up in a terminal window (or xterm) to be able to see what's going on, and to kill it if need be. It's easy
> enough to start them each on their own, but if the machine goes down ever when nobody is around, I need
> some of these to start up on their own.

Running gnome-session-properties you can configure autostart of
applications/scripts in Gnome. Create a script that calls
"gnome-terminal -e" or "gnome-terminal -x" (see gnome-terminal --help)
with your python script, so the terminal will start and output is
printed in it. Let that call in gnome session.

Alexander
 

-- 
Alexander Dalloz | Enger, Germany | GPG key 1024D/ED695653 1999-07-13
Fedora GNU/Linux Core 2 (Tettnang) kernel 2.6.7-1.494.2.2smp 
Serendipity 20:44:58 up 15 days, 14:12, load average: 0.48, 0.30, 0.26 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Dies ist ein digital signierter Nachrichtenteil
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20040819/68897df3/attachment-0001.sig>


More information about the fedora-list mailing list