tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Neil Movold <nmovold () ibl ! bm>
To: tru64-unix-managers
Subject: Using Perl V5 to run "adduser"
Date: Mon, 25 Sep 1995 15:18:24 +0000	[thread overview]
Message-ID: <96075323306696.tru64-unix-managers.marc@archive.invalid> (raw)

I am trying to write a Perl script that I can use to feed the appropriate
answers to the questions asked by "/usr/sbin/adduser".  I have tried
putting the responses in a file and then redirecting the file to the
adduser process using system().  This works fine until the password
prompt.  The adduser process will not read this line out of the file. 

	My second attempt is to use pipe() and fork(), however I am not 
getting too far with this as well.

	Any suggestions would be appreciated.


			Neil :-)


                     \\\//
                     (o o)
------------------ooO-(_)-Ooo-----------------------------------------
Neil Movold                     Phone  : +1 809 296-1800      
Special Operations Consultant   Fax    : +1 809 295-7269     
 ( i.e. the guy who has to 
        make it all work :-) )
Internet (Bermuda) Limited      E-mail : nmovold@ibl.bm     
P.O. Box HM2445
Hamilton, Bermuda
HM JX

             reply	other threads:[~1995-09-25 15:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-09-25 15:18 Neil Movold [this message]
  -- strict thread matches above, loose matches on Subject: below --
1995-09-29  9:49 Using Perl V5 to run "adduser" Neil Movold
1995-09-30 17:43 Neil Movold
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox