FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Linux and Unix Schedule Task, help plz.

 
Post new topic   Reply to topic    Cambodia eXPlore Forum Index -> Computer Hardware n Software
Author Message
guitarman
fourth grade


Joined: 04 Nov 2005
Posts: 728

PostPosted: Sat Feb 18, 2006 8:31 pm    Post subject: Linux and Unix Schedule Task, help plz. Reply with quote

Hello guys,

I know that in Windows, we can use Schedule Task to set some script to run in some interval of time. But i need help with linux and unix environment.

Do they have similar program in linux and unix to enable me to run some script daily at some point of time? and how to use it?

Back to top
Singachea
fourth grade


Joined: 19 Nov 2005
Posts: 258

PostPosted: Thu Feb 23, 2006 3:51 pm    Post subject: Reply with quote



Hi brother,

why don't you try to search for some tips? I don't think there is an immediate reply for this question since most people are the slaves of Windows including me as well Laughing

Back to top
guitarman
fourth grade


Joined: 04 Nov 2005
Posts: 728

PostPosted: Thu Feb 23, 2006 9:28 pm    Post subject: Reply with quote

Singachea wrote:
since most people are the slaves of Windows including me as well Laughing

Lolz.. Tried to search but I think with very limited knowledge on linux and unix, it's very hard to find the correct spot to read... hahah.. so I thought it's good idea to ask someone here who know .*you know who* heheh

Back to top
inferno



Joined: 25 Apr 2006
Posts: 5
Location: Bucharest, Romania

PostPosted: Tue Apr 25, 2006 7:48 pm    Post subject: Re: Linux and Unix Schedule Task, help plz. Reply with quote

guitarman wrote:
Hello guys,

I know that in Windows, we can use Schedule Task to set some script to run in some interval of time. But i need help with linux and unix environment.

Do they have similar program in linux and unix to enable me to run some script daily at some point of time? and how to use it?


In linux and unix it's called CRON.
Take a look on http://www.tldp.org/LDP/lame/LAME/linux-admin-made-easy/using-cron.html for a small description and some examples.

Back to top
triumph
second grade


Joined: 19 Apr 2006
Posts: 94

PostPosted: Tue Apr 25, 2006 9:56 pm    Post subject: Reply with quote

Yeah cron is great. You can schedule multiple events have it go off at specific time intervals. It is pretty easy to use. I don't know what flavor of linux you are using but you should be able to bring up the man page for cron from the command line as well.

Back to top
guitarman
fourth grade


Joined: 04 Nov 2005
Posts: 728

PostPosted: Fri Apr 28, 2006 12:40 am    Post subject: Reply with quote

thanks guys for the reply. Indeed I found out about cronjob.. But one question>>

Can cronjob run a website URL?

Back to top
triumph
second grade


Joined: 19 Apr 2006
Posts: 94

PostPosted: Sat Apr 29, 2006 3:32 am    Post subject: Reply with quote

No but there are other things you can use to do that. I think you can use something like get or curl to do that, and you can have a script that will run as part of a cron job to actually fetch a website.

Cron is just the scheduling mechanism. Just have it run a script to do whatever you want, whenever you want.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cambodia eXPlore Forum Index -> Computer Hardware n Software All times are GMT + 8 Hours
Page 1 of 1



by phpBB