Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Question Start crontab job from a directory


    I' would like to start a crontab job with the cwd
    set to /home/pi/Documents/python/

    How can i do that?

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    13,361
    Directly? You can't. You can create a link from the cron job file in your CWD to /etc/cron.d and restart the crond service. Some say that cron should see the link, but I have found that this is not always the case, hence the advice to restart the service.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •