Re: running a Python script with crontab
From: Michael Heiming (michael+USENET_at_www.heiming.de)
Date: 03/02/05
- Next message: liljencrantz_at_gmail.com: "Re: Announcing the friendly interactive shell"
- Previous message: Ted Timar: "Welcome to comp.unix.shell [Frequent posting]"
- Next in thread: Kenny McCormack: "Re: running a Python script with crontab"
- Maybe reply: Kenny McCormack: "Re: running a Python script with crontab"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 2 Mar 2005 08:09:16 +0100
In comp.unix.shell 18k11tm001@sneakemail.com:
> I have run many crontab jobs before, but they have always been BASH
> scripts. Now I am trying to run a Python script with crontab, but I am
> getting this error message:
> /usr/bin/env: No such file or directory
> It obviously refers to the first line of my script, which is
> #!/usr/bin/env python
IIRC that instructs the system to search in $PATH for 'python',
since $PATH is rather limited per default if starting from cron,
it can't be found. Try using the complete path to python:
#!/usr/local/bin/python
Or where ever it is.
[..]
Good luck
-- Michael Heiming (X-PGP-Sig > GPG-Key ID: EDD27B94) mail: echo zvpunry@urvzvat.qr | perl -pe 'y/a-z/n-za-m/' #bofh excuse 261: The Usenet news is out of date
- Next message: liljencrantz_at_gmail.com: "Re: Announcing the friendly interactive shell"
- Previous message: Ted Timar: "Welcome to comp.unix.shell [Frequent posting]"
- Next in thread: Kenny McCormack: "Re: running a Python script with crontab"
- Maybe reply: Kenny McCormack: "Re: running a Python script with crontab"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|