Forum Moderators: bakedjake

Message Too Old, No Replies

trouble with Cron

Having trouble setting up cron

         

hcs420

7:12 pm on May 31, 2003 (gmt 0)

10+ Year Member



Hi everybody,
I am having trouble in setting up Cron for my site.
I want to run
1. one script every minute
2. One script everyday at particular time.

When i give crontab command on my server - it says "No such command". Also tried using lynx commands but same no such command.

There is cron.daily folder on my server. But i have never worked on Crontab. Tried to work on it by reading few things from web but no success.

Thanks in advance for your help.

jatar_k

7:20 pm on May 31, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld hcs420,

take a look at this thread

Crontab step-by-step help needed
[webmasterworld.com]

there is another good thread linked from it as well.

You may also need to talk to your host to see if it is even available to you.

hcs420

7:28 pm on May 31, 2003 (gmt 0)

10+ Year Member



I think It is available as i get backups daily every 2 hrs. Also there are few files in cron.daily folder.

But when i type "crontab" - it just say me "No such command"

le_gber

9:51 am on Jun 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



what you should do is
1. use ftp to update you new crontab file on your server name it crontab
2. use ssh (try a search on PuTTY) to connect to your server as admin
3. type 'su' and enter to connect as root
4. then go to the directory with crontab in it
5. type crontab /path/to/the/file/you/uploaded/crontab
6. do a crontab -l to see if it worked
7. type 'exit' and enter
8. type 'exit' again and enter the window shuts up

To use SSH you have to have SSH enable. Try pkgmaster.com to donwload and install it if you haven't.

Hope this helped

Leo

daisho

1:44 pm on Jun 7, 2003 (gmt 0)

10+ Year Member



login using SSH and do "fine / -name crontab" to find out where the crontab binary is. It may just not be in the path.

daisho.