👤
Home Man
Search
Today's Posts
Register


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 02-05-2010
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?