第八章 编写SHELL脚本
需求介绍:
实现步骤:
# echo $SHELL
/bin/csh# whereis shutdown
shutdown: /sbin/shutdown# pwd
/root# vim shutdown.sh
#!/bin/csh
/sbin/shutdown -p now最后更新于
# echo $SHELL
/bin/csh# whereis shutdown
shutdown: /sbin/shutdown# pwd
/root# vim shutdown.sh
#!/bin/csh
/sbin/shutdown -p now最后更新于
# chmod u+x shutdown.sh# crontab -e
20 17 * * * /root/shutdown.sh# crontab -l
20 17 * * * /root/shutdown.sh