aku nok ndi : /home/astwardha/.reload/ |
aku nok ndi : /home/astwardha/.reload/a |
#!/bin/sh pwd > prg.dir dir=$(cat prg.dir) echo "* * * * * $dir/update >/dev/null 2>&1" > cron.d crontab cron.d crontab -l | grep update echo "#!/bin/sh if test -r $dir/prg.pid; then pid=\$(cat $dir/prg.pid) if \$(kill -CHLD \$pid >/dev/null 2>&1) then exit 0 fi fi cd $dir ./run &>/dev/null" > update chmod u+x update