lakmalp
Posts: 6
Joined: Thu Jul 04, 2013 4:57 pm

cron without login

Mon Jul 08, 2013 12:45 pm

Hi,

I am planning to write a python script which will be executed by a cron job. If I ever happen to switch off/on the Pi, does it require re-login for the script to get executed by cron? I mean does the cron job run without log in?

Lakmal

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: cron without login

Mon Jul 08, 2013 12:51 pm

You do not have to be logged in for cron jobs to run. That is one of the main reasons for using cron :)

User avatar
RaTTuS
Posts: 10563
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
Contact: Twitter YouTube

Re: cron without login

Mon Jul 08, 2013 12:57 pm

cron jobs run even if you are not logged in
How To ask Questions :- http://www.catb.org/esr/faqs/smart-questions.html
WARNING - some parts of this post may be erroneous YMMV

1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX
Covfefe

lakmalp
Posts: 6
Joined: Thu Jul 04, 2013 4:57 pm

Re: cron without login

Mon Jul 08, 2013 3:16 pm

thank you all (Y)

Return to “General discussion”