-
-
You can add a cronjob with "crontab -e" as root.
But use for php the full path of the php library (test it with "which php")
You can add a cronjob to the global crontab (/etc/crontab), too.
There you are able to add an username which will start your Script. -
-
Crontab is out of date and shouldn't be edited for own cronjobs.
Better is to use:
/etc/cron.d/Make a new file:
vi /etc/cron.d/tigyisolutions.huAnd add this:
*/15 * * * * vu20XX /usr/bin/php /var/www/virtual/tigyisolutions.hu/xxxx.phpSo the script will run under vu20XX.
BTW: No need of restarting Apache2 or cron
-
Crontab is out of date and shouldn't be edited for own cronjobs.Where you read that???
-
-
Where you read that???
TheCr's solution is not working for me. I'will try fluser's solutions.
-
Not working for me. I don't know. Maybe I do something wrong, but it don't work for me. I tried to search in google, but... No solution for me... :-s
I have
cron.d
cron.daily
cron.hourly
cron.monthly
cron.weeklyfolders is my etb... I tried to put in this to cron.d and cron.daily... Not work...
-
-
folders is my etb... I tried to put in this to cron.d and cron.daily... Not work... -
-
-
Quote
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron ( cd / && run-parts --report /etc/cron.monthly )
#
*/10 * * * * wget --spider http://boxy.tigyisolutions.hu/flasDel.php
This is my crontab. Should it work? -
Hey,
when you use crontab -e this list has this Syntax:
MINUTE HOUR DAY MONTH DAYOFWEEK COMMAND
so you can't write the user in it, because every user has an own crontab list.
if you run
you will run for the current user!if you run
you run it in this case for user v2000!All clear now?
Kind regards
Cosmo
-