[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Writing & Scheduling commands on RH9

On Jun 5, 2005, at 8:46 PM, Angelo wrote:

Hello all and thanks in advance.

1. I'd like to know which scripting language should I be writing
scripts in for RH9 for system administration (which does the system
recognize and is more robust for RH9)?

Whichever you're the strongest in. If you're not experienced with any, then find one that is best suited for the type of administration tasks you need to handle. I prefer Perl for times I need to do a lot of text mangling. For those times I just need simple process administration, I'll fall back on simple bash scripts. Others prefer Python or even other shells.

2. Also, how can I schedule scripts that I write to run at certain times?

Either "cron" or "at" will work for you. Cron is an way of automating commands at scheduled intervals. "At" is a command for scheduling one-time events.

3. How can I set up my system to run a script and track that it ran in
one log? (I'm assuming it's the system log??)

Anytime a cron entry is run, the results are mailed to the cron owner (by default). You could modify your cron entry to pipe through logger and write to syslog, if that's what you prefer.

Jason Dixon
DixonGroup Consulting

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]