IT职业工程师's Archiver

木头爱小猪 发表于 2008-7-16 10:24

如何查看shell 运行的记录

如何查看shell 运行的记录
我在一crontab 中有一shell(daily.sh) 脚本,每天早上执行,但是发现今天没有执行,查看date也正常,

这个脚本我也没有做log功能,请教一下大家,linux 有没可以查看shell脚本程序运行的记录,或日志什么的,

暮年 发表于 2008-7-16 10:24

/etc/syslog.conf
###########
cron.*   /logdir/logname

in shell head
#########
#!/bin/sh
exec &>/dir/execinfo

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.