Re: Perl/linux sysadmin question...

2002-05-23 Thread Elaine -HFB- Ashton
Ron Powell [[EMAIL PROTECTED]] quoth: *>I was recently reading Linux Administrators Handbook (by the same folks who *>wrote Unix System Administrators Handbook) and it mentioned that you could *>write a perl script to add users, set their passwords, etc. *> *>The question is, could someone point m

Re: Perl/linux sysadmin question...

2002-05-23 Thread David T-G
Ron -- ...and then Ron Powell said... % ... % > Thus, you should probably go back to your LAH and read up on % > what it has to say about adding users, and see if there is a % > "useradd" or "adduser" or similar script provided (what ... % % Heh, yeah, there are automated tools called adduse

RE: Perl/linux sysadmin question...

2002-05-23 Thread Ron Powell
> > Thus, you should probably go back to your LAH and read up on > what it has to say about adding users, and see if there is a > "useradd" or "adduser" or similar script provided (what > flavor of Linux are you using?) to see what it does (it might > be quite sufficient), and then you'll ha

Re: Perl/linux sysadmin question...

2002-05-23 Thread Jonathan E. Paton
--- Ron Powell <[EMAIL PROTECTED]> wrote: > I was recently reading Linux Administrators Handbook (by the > same folks who wrote Unix System Administrators Handbook) > and it mentioned that you could write a perl script to add > users, set their passwords, etc. > > The question is, could someone p

Re: Perl/linux sysadmin question...

2002-05-23 Thread David T-G
Ron -- ...and then Ron Powell said... % % I was recently reading Linux Administrators Handbook (by the same folks who % wrote Unix System Administrators Handbook) and it mentioned that you could Do you mean Nemeth/Seebass/Snyder/Hein? If so, it's probably a very good book; their UNIX SA's book

Re: PERL/Linux

2001-07-11 Thread Akshay Arora
Off the top of my head I can't think of anything better than system calls, and my books are at work, but you could simply use another system command: $who = `whoami`; $finger = `finger $who`; now, if that account has multiple logins, or multiple users using the same account (tsk on them) you will

Re: PERL/Linux

2001-07-11 Thread Bill Pierson
My apologies - I use: $who = `whoami`; not $who = `who`; Thanks, --Bill - Original Message - From: "Simas Cepaitis" <[EMAIL PROTECTED]> To: "Bill Pierson" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, July 11, 2001 9:33 AM Subject:

Re: PERL/Linux

2001-07-11 Thread Simas Cepaitis
Good day ;-) On Wed, Jul 11, 2001 at 09:20:08AM -0400, Bill Pierson wrote: > Good morning, afternoon, or evening depending on when you read this. :o) > > To aid in system administration and to track whom is accessing my servers, I wrote a >little PERL script that is called from /etc/bashrc. As