Skip to content

Tag Archives: cron

apt-get via cron

08-Mar-11

IRL I’ve had a few people ask me about updating Ubuntu installations via cron. If you add something like 05 0 * * * /usr/bin/apt-get -y update ; /usr/bin/apt-get -y upgrade to root’s crontab, you’ll get errors like this: dpkg: warning: ‘ldconfig’ not found in PATH or not executable. dpkg: warning: ‘start-stop-daemon’ not found in [...]

Use mail command in script

06-Aug-10

Image via Wikipedia By default, the mail command is used to check email. Append an email address and you are in an interactive mail sending session. But what if you want to use the mail command non-interactively, say, to send yourself a log after a script runs? I figured out how to do that but [...]

Tweeting Cron Jobs

23-Feb-10

I have several Twitter accounts aside from my primary one, @briealeida. One serves as a posting place for two cron jobs that I have running that provide information about my computer hourly. Here’s how you can easily set these up as well: Requirements: 1. Install Perl. Perl comes standard but just in case, install it. [...]