Re: Something More Than Cron

2010-02-13 Thread Stuart Jansen
On Sat, 2010-02-13 at 04:47 -0700, Shane Hathaway wrote:
> I'd like some suggestions for Unix/Linux software that does just a bit 
> more than our old standby, cron.  I'd like:

Are you looking for full-featured job scheduling software? Most is
proprietary since usually only companies are interested, but here's one
F/OSS version I found:

http://jobscheduler.sourceforge.net/

-- 
"XML is like violence: if it doesn't solve your problem, you aren't
using enough of it." - Chris Maden


/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/


Re: Something More Than Cron

2010-02-13 Thread Shane Hathaway
Eric Wald wrote:
> Could these two be added by a simple wrapper around your real cron job?
> It could start by adding a single line to a log file, then steal all of
> the input and pipe it into sendmail.  Rough guideline:
> 
> echo `date -u +"%s"` "$@" >> /var/log/jobsrun.log
> ( echo "From: $...@localhost"; \
>   echo "To: $u...@localhost";
>   echo "Subject: Job transcript for $1";
>   echo; \
>   "$@" ) |& sendmail -i $u...@localhost
> 
> Good luck.

Not a bad idea!  Thanks.

Shane

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/


Re: Something More Than Cron

2010-02-13 Thread Eric Wald
Shane Hathaway wrote:
> I'd like some suggestions for Unix/Linux software that does just a bit
> more than our old standby, cron.  I'd like:
>
> - A complete report of what was run and when (cron doesn't do this)
>
> - An email even if the job takes a long time (cron apparently doesn't
> send email if the job takes more than 5 minutes)

Could these two be added by a simple wrapper around your real cron job?
It could start by adding a single line to a log file, then steal all of
the input and pipe it into sendmail.  Rough guideline:

echo `date -u +"%s"` "$@" >> /var/log/jobsrun.log
( echo "From: $...@localhost"; \
  echo "To: $u...@localhost";
  echo "Subject: Job transcript for $1";
  echo; \
  "$@" ) |& sendmail -i $u...@localhost

Good luck.

- Eric

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Re: Something More Than Cron

2010-02-13 Thread Shane Hathaway
Justin Hileman wrote:
> If I were starting a project like this, I would start with launchd,  
> not cron.

You mean this?

http://en.wikipedia.org/wiki/Launchd

It looks Mac-centric and over-reaching.  To clarify, I need to run my 
scripts on several virtual private servers in different locations.  They 
run Debian, Ubuntu, and Gentoo.

Shane


/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/


Re: Something More Than Cron

2010-02-13 Thread Justin Hileman

On Feb 13, 2010, at 6:47 AM, Shane Hathaway   
wrote:

> Hi PLUG,
>
> I'd like some suggestions for Unix/Linux software that does just a bit
> more than our old standby, cron.  I'd like:
>
> - A simple way to add new jobs (like cron)
>
> - A complete report of what was run and when (cron doesn't do this)
>
> - An email even if the job takes a long time (cron apparently doesn't
> send email if the job takes more than 5 minutes)
>
> - A way to disable jobs temporarily
>
> I want to run long jobs such as mysqldump and rsync from VPSs to a
> backup drive.  Maybe someone has already written a different version  
> of
> cron that does these things.  Thoughts?
>
> (I have played with various backup programs designed for archiving on
> tape, but I use rdiff-backup, not tape; the programs designed for tape
> seem too obtuse to be useful.  I just want to run trivial scripts.)
>

If I were starting a project like this, I would start with launchd,  
not cron.

Justin
--
Sent from my iPad Nano. 

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/


Something More Than Cron

2010-02-13 Thread Shane Hathaway
Hi PLUG,

I'd like some suggestions for Unix/Linux software that does just a bit 
more than our old standby, cron.  I'd like:

- A simple way to add new jobs (like cron)

- A complete report of what was run and when (cron doesn't do this)

- An email even if the job takes a long time (cron apparently doesn't 
send email if the job takes more than 5 minutes)

- A way to disable jobs temporarily

I want to run long jobs such as mysqldump and rsync from VPSs to a 
backup drive.  Maybe someone has already written a different version of 
cron that does these things.  Thoughts?

(I have played with various backup programs designed for archiving on 
tape, but I use rdiff-backup, not tape; the programs designed for tape 
seem too obtuse to be useful.  I just want to run trivial scripts.)

Shane


/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/