: 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
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;
>
>
>
>
> _____
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
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
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
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
--
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