====== Luku kasutamine croni skriptis ====== #!/bin/bash cd /opt/ipdbd if [ -f crontask.lock ] ; then exit 0 fi touch crontask.lock python2.4 crontask.py >> crontask.log rm -f crontask.lock ====== Scripti parameetrite kasutamine ja kontrollimine ====== #!/bin/bash if [ -z "$1" ]; then echo "Please add device_id as first parameter! This is NOT the hardware serial!"; exit 0; fi if [ -z "$2" ]; then echo "Please add date of interest as second parameter!"; exit 0; fi echo "$2" > /tmp/$1 chmod 666 /tmp/$1