金が無い...灯油ほしい...
at の内容をすべて消去
2006/12/2
$ cat /usr/local/bin/atdel
#!/bin/sh
echo "現在の予定"
at -l
echo ""
del=`at -l | awk '{print $1}'`
echo "消去されるjob-No"
echo $del
at -d `echo $del`
echo ""
echo "実行後"
echo ""
at -l
#!/bin/sh
echo "現在の予定"
at -l
echo ""
del=`at -l | awk '{print $1}'`
echo "消去されるjob-No"
echo $del
at -d `echo $del`
echo ""
echo "実行後"
echo ""
at -l
— posted by くま at 09:18 am TrackBack [0]
Comments