Chinaunix

标题: who wtmp不可用 [打印本页]

作者: windflywang    时间: 2008-11-21 11:04
标题: who wtmp不可用
RT, last命令正常,AIX5.3,查看wtmp存在
作者: meilixueshan    时间: 2008-11-21 12:50
怎么个不可用?
命令不存在?没有响应?
作者: windflywang    时间: 2008-11-21 14:38
# who wtmp
who: 0551-014 wtmp either does not exist or is not readable.

Usage: who [-AabdHilmpqrsTtuwX?] [am {i,I}] [utmp_like_file]
          -A  Accounting entries
          -a  All (AbdHlprTtu) options
          -b  Boot time
          -d  Dead processes
          -H  Display a Header (title)
          -l  Login processes
          -m  Information about current terminal (same as 'am i')
          -p  Processes other than getty or user process
          -q  Quick (only user and host name)
          -r  Run level
          -s  Short form (suppress Activity and PID)
         -T,w Status of tty
                (+ writable, - not writable, x exclusive open, ? no response)
          -t  Time changes
         -u,i Activity and PID of shell
         -X   Expanded user names
作者: meilixueshan    时间: 2008-11-21 16:43
我倒!
who /var/adm/wtmp
作者: windflywang    时间: 2008-11-21 23:17
原帖由 meilixueshan 于 2008-11-21 16:43 发表
我倒!
who /var/adm/wtmp



哦哦哦,谢谢,另外我试验的机子是可以的,都是同一个盘装了怎么就不一样,另外是不是set中要有 wtmp=/var/adm/wtmp才可以?
作者: meilixueshan    时间: 2008-11-22 02:01
你set wtmp变量,当然可以用




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