Forum Moderators: bakedjake

Message Too Old, No Replies

how can i create a Cronjob?

how can i create a Cronjob?

         

StopSpam

10:52 am on Jul 5, 2003 (gmt 0)

10+ Year Member



Hi all ..

Ihave totally no experianse with cronjob
but i am sure emy unix server will support it ..
i just never needed or had try it ..

now i have a script that i need to run 4 times a day ...
and i am not allways around to do myself ;-)

can any one show me a sample of a cronjob that do the 4 times a day run

i understand that i need to create a text file in the same dir as the script?

wruk999

11:40 am on Jul 5, 2003 (gmt 0)

10+ Year Member



StopSpam,

What kind of access do you have to your server?
ie: do you have root/ssh/telnet access or are you on shared hosting and only have ftp access?

There are a few ways to accomplish what you want, but it depends on the setup of your server.

ie: different users can have different cron tabs, there is the master crontab, and you can also symlink to a script from one of the cron.* folders.

For running at 4 times a day, you wont be able to use the standard symlink operation, you will need to use a crontab file, and your use of this depends on your access.

wruk999.

sugarkane

12:30 pm on Jul 5, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



StopSpam, these two threads should be of interest ;)

[webmasterworld.com...]
[webmasterworld.com...]

StopSpam

12:51 pm on Jul 5, 2003 (gmt 0)

10+ Year Member



i only have ftp access to the site

i rent space at powweb,com virtual hosting

Romeo

1:11 pm on Jul 5, 2003 (gmt 0)

10+ Year Member



... you may go to the powweb "online community" forum and search for "cron". Read the "even more webstats/cron issues" thread. Looks like you can perhaps upload a crontab-file via ftp.

Regards,
R.

StopSpam

1:23 pm on Jul 5, 2003 (gmt 0)

10+ Year Member



i like to thank all for your reply's

I am sure i will find my anser now ;-)