Bash deamon
public text v1 · immutable#!/bin/bashNOW=`date "%b %e %R"`echo "Deamon started"if [ "x$1" != "x--" ]; then$0 -- 1> ~/$0.out.log 2> ~/$0.err.log &exit 0fiwhile [ "true" ]do sleep 59 echo "WORKING...."done#!/bin/bashNOW=`date "%b %e %R"`echo "Deamon started"if [ "x$1" != "x--" ]; then$0 -- 1> ~/$0.out.log 2> ~/$0.err.log &exit 0fiwhile [ "true" ]do sleep 59 echo "WORKING...."done