Tags » Cron

Running a Daemon (self restarting) Process in Ubuntu - the easy way

I recently had to think about changing my cron jobs that run every 2 minutes to something more reliable.

Basically, running a cron job every other minute has the disadvantage of restarting the script from the beginning even when the previous instance is still running. 622 more words

PHP Code

Linux : Mounting A Remote Network Folder Locally

SSHFS and FUSE To Mount Remote Network Resources

UPDATE (2014.04.09): I may have been premature with the startup script mentioned below.  This doesn’t seem to work.   698 more words

Linux

Cron job to Automatically Delete the Contents of a Shared Folder

Our home all-in-one printer has network scanning capabilities which is setup to scan documents to a shared drive on our NAS. For security reasons, I didn’t want scanned documents sitting on the network for too long, so I created a cronjob on the NAS to automatically clear the scanned documents folder every hour: 82 more words

NAS

Dyn.com weekly login script

replace username and password accordingly.

/etc/cron.weekly/dynlogin:

#!/bin/bash
USER=username
PASS=password
rm cookie-dyn-com
sleep 1
MULTIFORM=$(curl -k -A “Mozilla/5.0 (X11; Linux i686; rv:10.0.7) Gecko/20100101 Firefox/10.0.7 Iceweasel/10.0.7″ -e “ 63 more words

Linux