Tags » Bash Script

Start service on system startup using Upstart

I’m using Upstart Event System to start uTorrent server when system is up. The setup process is pretty simple and the most useful advantage is- if the job gets terminated then it would be restarted. 176 more words

Bash Script

Automated reminder service for backup

I’m very much used to with cron jobs which are used frequently to schedule tasks. Cron can run as often as every minute. But it assumes that the system is running continuously and if the system is not up at the time when a job is scheduled, that job is not executed. 235 more words

Bash Script

Sync directories using bash

I use rsync command to sync some local directories to my external HDD. I wrote a simple bash script to do this job. I’d set up a… 195 more words

Bash Script

Anacron for specific user

Few days ago I was working to set up a backup reminder process for myself. After having few searches I observed anacron fits the best to solve my requirement- sending notification at certain frequency and at my availability too. 244 more words

Bash Script

Change the Java (JVM) used by tomcat.

Enterprise systems will have different versions of Java installed in it. A system administrator may have to set up Tomcat to use a particular one out of it. 103 more words


Multi-processing using shell script

I love concurrency. Writing a concurrent program is always complex. There are different technologies which are most suitable to do this job. In an earlier post… 97 more words

Bash Script

Easy Timestamping with Bash

Here’s a quick Bash script to prefix lines read from standard input by a time stamp.

#!/usr/bin/env bash

while read line
    echo $(date "$@") "$line"
… 189 more words