-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mohamed Haidar wrote: > Hello guys, I have a problem with cron. I got a program for updating my > ip to a internet dns host and i set it up correctly. The program works. > Now with the program came a file that i putt in the /etc/cron.d dir > because the program instructed me to do that. Basically what I want to > do is to let the program run once a minute. The file I putt in the > cron.d dir contains these entries : > > * * * * * root /usr/bin/ipdetect.sh > */15 * * * * root /usr/bin/ipdetect.sh -p host -r browser -c
The above lines should be either be added to the /etc/crontab file. (DO NOT overwrite the /etc/crontab file as it runs the /usr/lib/cron/run-crons file and this will break other stuff). Or preferably you should add SHELL=/bin/sh at the beginning of the file to force it to run the bash shell.. If you mail to be sent flagging a result MAILTO=<your account> The man page for cron is not strictly accurate for the SuSE distro... but man 5 crontab should give further details that are good. > > Now cron doesn't run the ipdetect script, never. I did some It wont, > investigation and I found out that cron doesn't have any log files or > conf files on my system, which I thought was a bit strange. > So all I did was to putt the file in the /etc/cron.d dir, do I have to > do anything else or is the a problem with the cronsetup on my system or > what do you guys think. If I do a ps aux then I find that cron is > running on the system from boot. > Thx guys for your aid. Regards, mohed. > > _________________________________________________________________ > Don't just search. Find. Check out the new MSN Search! > http://search.msn.com/ > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGQYXNasN0sSnLmgIRApVBAKDdN5cmuvEg/O6J3kGcMiUA6XxhiwCgsTzd wmGSGI6mrIBlmzTmEhYfvtI= =aY7x -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
