|
发表于 2004-3-3 23:59:10
|
显示全部楼层
最初由 puzzie 发表
找到一个错误了,原来注释和程序之间是不能有空行的,唉~~~
?:ask 不会吧1
我觉得首先你的脚本的思路你要理解,还要剔除拼写错误,语法错误等,...其实你运行脚本时候出的错误已经告诉你错误发生的地方了!如:[root@monitor monitor_script]# ./alert_ping.sh
: command not foundne 6:
: command not foundne 17:
'/alert_ping.sh: line 18: syntax error near unexpected token `
'/alert_ping.sh: line 18: `mail_body()
如果你有基础的shell知识不难看出了!,而别人看你的程序没有必要的注释,又没有可能的环境给你测试,是很难分析出来的!(还不如说出想法,为重写一个呢) |
|