English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I have no idea what I'm doing. lol

2007-06-05 03:34:24 · 1 answers · asked by Ontario_Mom 4 in Computers & Internet Software

thanks Jim I need to create one.
I have NO idea what I'm doing. I read
and nothing makes sense.

2007-06-05 04:00:52 · update #1

1 answers

Are you writing a con daemon or do you need to create a cron job entry? If creating an entry in an existing cron, try using:

crontab -e

If writing your own cron daemon, take a look at the existing cron daemon and model yours after that. You'll need to handle the various time options for a task as well as handling user vs root/system level jobs.

** Edit **
I haven't written one but check out the manual pages below for ideas:

Basically what you will end up writing is a process that reads entries from a file to determine time and frequency info to run another process. I gather you haven't done any UNIX administration but picture an operational system where you want to run a backup process to archive users home directories. You could manually run that process or you could schedule it to run automatically at some off-peak time when users aren't logged onto the system. The cron system reads information from a configuration file called the "crontab" and based on the info in it, the cron daemon will know when to run a process. It doesn't know anything about the process other than when to run it and where it resides (full path to the executable). When the cron entry hits the appropriate time, the cron daemon kicks off that job.

2007-06-05 03:50:39 · answer #1 · answered by Jim Maryland 7 · 0 0

fedest.com, questions and answers