Re: Running python script before user login

2010-08-22 Thread Mahmood Naderan
: python-list@python.org Sent: Sun, August 22, 2010 5:50:00 PM Subject: Re: Running python script before user login On Sunday 22 August 2010, it occurred to Mahmood Naderan to exclaim: > I am trying to execute this script before login: >  > #!/bin/sh > date > /home/mahmood/dateatboot

Re: Running python script before user login

2010-08-22 Thread Thomas Jollans
How about something like this: #!/bin/sh cd /home/mahmood/ python sendip.py >sendip.log 2>&1 ... this will write Python's output to a log file. If there is an exception, you'd be able to see it. > > > // Naderan *Mahmood; > > > > > _____

Re: Running python script before user login

2010-08-22 Thread Mahmood Naderan
close() ...   After boot there is no .ip.txt file.   // Naderan *Mahmood; From: Thomas Jollans To: python-list@python.org Sent: Sun, August 22, 2010 3:17:57 PM Subject: Re: Running python script before user login On Sunday 22 August 2010, it occurred to Mahmood Naderan to exclai

Re: Running python script before user login

2010-08-22 Thread Thomas Jollans
Mahmood Naderan > Cc: python mailing list > Sent: Sun, August 22, 2010 1:28:45 PM > Subject: Re: Running python script before user login > > On Sun, Aug 22, 2010 at 1:52 AM, Mahmood Naderan wrote: > > I have wrote a python script and want to run it before user login. To d

Re: Running python script before user login

2010-08-22 Thread Mahmood Naderan
Naderan *Mahmood; From: Chris Rebert To: Mahmood Naderan Cc: python mailing list Sent: Sun, August 22, 2010 1:28:45 PM Subject: Re: Running python script before user login On Sun, Aug 22, 2010 at 1:52 AM, Mahmood Naderan wrote: > I have wrote a python script

Re: Running python script before user login

2010-08-22 Thread Chris Rebert
On Sun, Aug 22, 2010 at 1:52 AM, Mahmood Naderan wrote: > I have wrote a python script and want to run it before user login. To do > that, I have added it to the ubuntu startup file (init.d). However it seems > that the script doesn't work. Specify exactly how it's not working. Cheers, Chris --

Running python script before user login

2010-08-22 Thread Mahmood Naderan
I have wrote a python script and want to run it before user login. To do that, I have added it to the ubuntu startup file (init.d). However it seems that the script doesn't work. I want to know does python modules work before user login? // Naderan *Mahmood; -- http://mail.python.o