摘要:
1、在执行crontab命令时,与直接在shell中执行程序有点区别,要引起注意。如ps aux | grep file 直接在shell中执行,则搜索范围只在top中当前执行的进程,而写入crontab执行,则crontab中所有语句也成为了搜索范围。 count = `ps aux | grep file | wc -l` 2、写的脚本前面加/bin/sh 如果要... 阅读全文
posted @ 2011-10-31 08:48
浪里飞
阅读(2442)
评论(0)
推荐(0)
摘要:
1、head - output the first part of files head [OPTION]... [FILE]... 2、option ① -c, --bytes=[-]N:print the first N bytes of each file; ② -n, --lines=[-]N:print the first N lines instead of the fi... 阅读全文
posted @ 2011-10-31 08:32
浪里飞
阅读(927)
评论(0)
推荐(0)
摘要:
1、tail - output the last part of files tail [OPTION][+/-num]... [FILE]... 2、option ① -f,:output appended data as the file grows; ② -s, :with -f, sleep for S seconds (default 1.0) betwe... 阅读全文
posted @ 2011-10-31 08:23
浪里飞
阅读(3440)
评论(0)
推荐(0)

浙公网安备 33010602011771号