Can't get my crontab -e working
This is what I did: crontab -e */2 * * * * wget http://path/to/my/pythonscript This does not work. I am probably missing something like a username or password in this line but what username do I need. Is it the main user in the acl_users, manager, of my zope or do I use the username=zope or I placed a local role to that script with manager privileges do I use that username? Thanks, Laura
On Mon, May 17, 2004 at 12:08:00PM -0500, Laura McCord wrote:
This is what I did:
crontab -e
*/2 * * * * wget http://path/to/my/pythonscript
You might want to use the full path of wget there. The binary might not be in the PATH of the user that cron runs under. And it is also a good idea to log the output somewhere. -- __________________________________________________ "Nothing is as subjective as reality" Reinoud van Leeuwen reinoud.v@n.leeuwen.net http://www.xs4all.nl/~reinoud __________________________________________________
On Monday 17 May 2004 12:12 pm, Reinoud van Leeuwen wrote:
On Mon, May 17, 2004 at 12:08:00PM -0500, Laura McCord wrote:
This is what I did:
crontab -e
*/2 * * * * wget http://path/to/my/pythonscript
You might want to use the full path of wget there. The binary might not be in the PATH of the user that cron runs under. And it is also a good idea to log the output somewhere.
Also, I realize this is a fake example, but you do realize, of course, that in this example the domain name is "path" -- be sure you do include the domain name correctly. Cheers, Terry -- Terry Hancock ( hancock at anansispaceworks.com ) Anansi Spaceworks http://www.anansispaceworks.com
On Mon, 2004-05-17 at 10:08, Laura McCord wrote:
This is what I did:
crontab -e
*/2 * * * * wget http://path/to/my/pythonscript
This does not work. I am probably missing something like a username or password in this line but what username do I need. Is it the main user in the acl_users, manager, of my zope or do I use the username=zope or I placed a local role to that script with manager privileges do I use that username?
1. Test your wget command outside of cron so that you only have on set of errors to deal with at a time. Use it from the command line until you get the right results, experimenting with usernames until things work as expected; it sounds like you have only a few choices, so it shouldn't be too difficult to try wget --http-user='xyz' http://path/to/my/pythonscript with each of them. 2. Once you have it working from the command line, then try to put it into your cron script. Use the full path to wget (like /usr/local/bin/wget, although this will depend on your system). Jud -- Jud <lists@dagnall.net> http://www.dagnall.net
hi, Laura
In <573C3D25471BAE4DB0CDA25B1FE6C3832E3411@aa16exc.int.doucetandassociates.com> "Laura McCord" <Laura.McCord@doucet-austin.com> wrote:
This is what I did: crontab -e */2 * * * * wget http://path/to/my/pythonscript
If you access internet via proxy server, you need to set environment variable. This is a sample script named getscript.sh -- #!/bin/sh export http_proxy=http://proxydomain:proxyport CMD=`which wget` ${CMD} http://path/to/my/pythonscript -- and your cron like this. -- */2 * * * * /yourpath/getscript.sh -- - Sumiya Sakoda <sakoda@toyoake.or.jp>sS
participants (5)
-
Jud Dagnall -
Laura McCord -
Reinoud van Leeuwen -
Sumiya Sakoda -
Terry Hancock