Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-08-2005, 05:53 AM   #1
Registered: Aug 2005
Distribution: Ubuntu
Posts: 30

Rep: Reputation: 15
Running Python Script in UBUNTU Session Manager

I want my python script run everytime login.
In WinXP I've done this simply by placing shortcut of my program into StartUp Folder
In Ubuntu Linux, I tried using session manager in Startup tab adding :
python /home/user/
Well it being loaded after I tested to logoff and login, but unfortunately the status is "TRASH" icon which I've read in manual mean not started in current session.

So how to make my python script executed every login using session manager ?

Please Help,
Thank You
Old 09-14-2005, 09:07 PM   #2
Registered: Aug 2005
Distribution: Ubuntu
Posts: 30

Original Poster
Rep: Reputation: 15

Is there no one have any idea Running Python Script on Gnome (Ubuntu) Session Manager ?

Please Help
Thank You
Old 12-06-2006, 03:08 PM   #3
LQ Newbie
Registered: Dec 2006
Posts: 1

Rep: Reputation: 0
Originally Posted by warnetgm
Is there no one have any idea Running Python Script on Gnome (Ubuntu) Session Manager ?
Some non-interactive or launch environments don't connect all the open output streams that some programs (like python) demand. If that's the problem, you can satisfy such programs, by connecting the error output stderr (stream 2) to the output stdout (stream 1), and redirecting them both together to /dev/null.

python /home/user/ > /dev/null 2>&1

Now, python can freely and happily write its error messages into the endless void that is /dev/null.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting 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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu How to run Python script on Login? warnetgm Linux - General 14 03-13-2012 06:11 PM
python cgi script and premature end of script headers Neruocomp Programming 1 07-28-2005 11:43 AM
the session manager don't run???? tux66 Slackware 1 05-18-2005 01:29 PM
Session Manager Hectic Slackware 1 10-10-2004 09:13 PM
xfce x session manager dthomp325 Linux - Software 1 01-10-2004 03:11 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:35 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration