LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

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

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


Hi,
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 :
Code:
python /home/user/program.py
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
warnetgm
Member
 
Registered: Aug 2005
Distribution: Ubuntu
Posts: 30

Original Poster
Rep: Reputation: 15
Halo,

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
jodarom
LQ Newbie
 
Registered: Dec 2006
Posts: 1

Rep: Reputation: 0
Quote:
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/program.py > /dev/null 2>&1

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


Reply


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


All times are GMT -5. The time now is 02:55 PM.

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