View Full Version : Cron job help please
trafix
06-02-2003, 09:33 PM
I have an emsim admin panel (yuk) I cant find any option for setting up cron jobs :(
My host told me this I could use SSH to add cron jobs, is this corrent? or should i just use a fake cron job as suggested in the signature hack??
Thanks in advance ....
Erwin
06-03-2003, 12:18 AM
SSH into your server as root.
Then you have options here:
1) You can set up a cronjob by typing this in the command line:
crontab -e
2) OR, you can set up a cronjob by adding entries to the cron.daily or cron.weekly directories - in the command line do this:
cd /etc/cron.daily
pico yourcronjob
And type this at the top:
#!/bin/sh
Then list out your commands.
CTRL-O to save, then CTRL-X. Then chmod the file to 755.
You have made a bash script to run as a cron job.
You can edit /etc/crontab to change the times you want cron.daily to run. Do the same in the cron.weekly or cron.monthly subdirectories if you wish.
trafix
06-03-2003, 01:03 PM
Thanks Erwin :) a great help, I wish i had time to impliment it :( I need to use it to auto warn and delete expired listings, so i will get there soon
vBulletin® v3.8.12 by vBS, Copyright ©2000-2024, vBulletin Solutions Inc.