Thank you!
And Shlomi, I'm sorry I didn't understand your response. I played with it for
about 10 minutes, but just didn't see how it fit in with my situation.
My many thanks to all of you. I believe I am on my way.
- Regina
--- In perl-beginner@yahoogroups.com, merlyn@... wrote:
>
> >>>>> "rmiller571957" == rmiller571957 <rmiller@...> writes:
>
> rmiller571957> But how can I pass it on to the useradd command as one
parameter?
>
> As Shlomi Fish already showed you before... using a multi-arg system command:
>
> rmiller571957> unless (system ("useradd -g $usergroup -d /home/$userid -m -s
/usr/bin/ksh -c $username $userid")) {
>
> replace that with:
>
> system "useradd","-g", $usergroup, "-d", "/home/$userid", "-m", "-s",
"/usr/bin/ksh", "-c", $username, $userid;
>
> Please pay attention when people answer things for you. We aren't just
> making this stuff up. :)
>
> --
> Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
> <merlyn@...> <URL:http://www.stonehenge.com/merlyn/>
> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
> See http://methodsandmessages.vox.com/ for Smalltalk and Seaside discussion
>