Unix/Linux Go Back    

Crontab and working directory

Shell Programming and Scripting

Kindly Note - This is a Single User Post by Forum Member manustone Regarding:
Crontab and working directory.
Please Follow The Primary Link Above to View the Full Discussion.

Old Unix and Linux 02-05-2010   -   Original Discussion by manustone
manustone's Unix or Linux Image
manustone manustone is offline
Registered User
Join Date: Jul 2009
Last Activity: 21 March 2012, 9:32 AM EDT
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Crontab and working directory

Hi all
I would like to crontab some python script I have.
These have the task to write a txt file on the same directory where they are let' say 'scriptFolder'.
When I schedule the script execution with crontab the file is printed out somewhere else.
Is there any way to tell crontab that for that script the directory should be the one of the script?
I am using the following

46 8 * * python \scriptFolder\MyScript.py

Can you help me with that?