Re: Need script to extract from /etc/security/lastlog -> list of users and their la
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix administration > Re: Need script to extract from /etc/security/lastlog -> list of users and their la




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Re: Need script to extract from /etc/security/lastlog -> list of users and their la  
Stephane CHAZELAS


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
12-17-04 12:50 PM

2004-12-17, 11:31(+00), Bela Gazdy:
[...][vbcol=seagreen]
> Correct. Recycling wtmp, most of the times, means: cat /dev/null > /var/adm/wtmp[/
vbcol]
[...]

I've always wondered why people would use "cat /dev/null" as a
command that outputs nothing while there are that many other
ones that are built in the shell.

Is it because early Bourne shells had problems when redirecting
builtins?

: > /var/adm/wtmp # the most obvious
eval > /var/adm/wtmp
exec 3> /var/adm/wtmp 3>&-
shift 0 > /var/adm/wtmp
...

(and cd, read, command, printf, builtin, getopts, true, false...).

--
Stephane






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:08 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register