On Sat, Dec 09, 2000 at 10:00:37PM -0600, Eric Clover wrote:
> hi,
> i am asking for some scripting help. i would like to have a bash script
> to
> prompt for input and take that input and have it call other script that
> i
> already have. i have an adduser perl script and an expect paswd script,
> i my
> goal is to run a script, have it prompt for input like : username, real
> name
> (and have that call the adduser perl script) then ask for a password(and
> have that call up the expect passwd script)
This would do something like what you are asking...
] echo -n "Enter name: "
] read newuser
] echo -n "Enter fullname: "
] read fullname
] adduser -c "$fulname" "newuser"
Adapt accordingly.
> thank you for your help
> eric
Mike
--
Michael H. Warfield | (770) 985-6132 | [EMAIL PROTECTED]
(The Mad Wizard) | (678) 463-0932 | http://www.wittsend.com/mhw/
NIC whois: MHW9 | An optimist believes we live in the best of all
PGP Key: 0xDF1DD471 | possible worlds. A pessimist is sure of it!
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list