Chinaunix

标题: crontab,请指教 [打印本页]

作者: rosemary2u    时间: 2008-02-26 11:15
标题: crontab,请指教
setup a crontab entry that once an hour will record who is logged onto the system. Please record the date and time the command runs, then have the listing of logged in users logged. Your data will look similar to this:
Mon Jan 6 20:43:00 CST 2003
griffin ttyp1 Jan 6 20:43
Mon Jan 6 21:43:00 CST 2003
griffin ttyp1 Jan 6 20:43
jjsmith ttyp2 Jan 6 20:55
Mon Jan 6 22:43:00 CST 2003
Mon Jan 6 23:43:00 CST 2003
Mon Jan 7 00:43:00 CST 2003
Mon Jan 7 01:43:00 CST 2003
jmdoe ttyp1 Jan 7 00:39
作者: 牛晶大学    时间: 2008-02-26 21:20
提示: 作者被禁止或删除 内容自动屏蔽
作者: rosemary2u    时间: 2008-02-27 05:03
标题: 回复 #2 牛晶大学 的帖子
脚本怎么编呀? 这是一个题,老大.




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2