• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Linux Gurus: how-to on automated processes via CLI?

My goal is to find either just a basic CLI syntax to build/edit/maintain/check or verify processes or scripts that are executed automatically at a specific time of day every day (like reoccurring daily) so that I can have something to start with and teach myself (a lotta that goin' on around here lately). Either that or get some links to online guides and resources that will explain in detail how they work.

OS-independent is much preferred, but if that isn't a possibility, I'll need Gentoo- and RH9-compatible scripts. I'm looking through Google, but I haven't found anything yet. That's what I get for just having started searching. I'll check this thread later for possible responses. Thanks. 🙂
 
It's a bit unclear to me what you want....

You either want to create "cron" jobs, or you want to check on the status of cron jobs... ?

I usually have each automated job record it's status in a file, or include in the script the "mail ..." command so I have the status emailed to me.
It's either too early for me, or maybe you could better explain what you want.

link to cron tutorial: here
link to shell programming/scripting basics: here
 
Here's a great Link to some useful guides.

If this is something like what you were looking for, send a beer to DRAG as the link is in his sig 🙂

Thanks again Drag for finding this, I've found it very useful :beer:
 
I'll 2nd What others have said, and add a bit.

One thing I often do for scripts run via cron is to wrap the whole thing in a big try/except block and send out an email if it fails. This is in addition to regular error checking, and catches unexpected stuff, like your sysadmin uninstalling key libraries without notice ... don't ask.

On a past project, I was using NetSaint (now Nagios IIRC) to monitor a bunch of stuff. All the cron jobs wrote a log file, so I wrote a NetSaint plugin to check the last access time for each of the log files and corellate it against the cron config. So if something didn't go off for some reason, you'd see it on the NetSaint status. That script also eventually parsed the log files for a tag indicating success or failure & the date.
 
Back
Top