Re: Off topic PERL question...

1998-04-05 Thread Bench
It's because of Expect, the version of Expect (i believe) is newer than 5.18. Use version 5.18 and it will be consistent. _ benchdelosangelesjr. On Sun, 5 Apr 1998, L. M. Marchese wrote: > I run RH4.2 with Apache and am trying to write a cgi program which > changes a user's password based on

Re: Off topic PERL question...

1998-04-05 Thread Bryan Andregg
On Sun, 5 Apr 1998 17:55:21 -0400 (EDT), Cristian Gafton wrote: >On 5 Apr 1998, Bryan C. Andregg wrote: > >> Why would you use perl to run useradd and passwd? It is much faster to have >> perl edit the files by hand. > >Because of terrible little not-important non-essential things like proper >lo

Re: Off topic PERL question...

1998-04-05 Thread Cristian Gafton
On 5 Apr 1998, Bryan C. Andregg wrote: > Why would you use perl to run useradd and passwd? It is much faster to have > perl edit the files by hand. Because of terrible little not-important non-essential things like proper locking, maybe ? Cristian -- ---

Re: Off topic PERL question...

1998-04-05 Thread L. M. Marchese
I run RH4.2 with Apache and am trying to write a cgi program which changes a user's password based on his/her input in from a web form. Is there a ready program out there I can use? I have tried the following EXPECT script from O'Reilly's "UNIX Power Tools" but it doesn't work all the time. I s

Re: Off topic PERL question...

1998-04-05 Thread Bryan C. Andregg
On Sat, 4 Apr 1998 16:34:38 -0800 (PST), <[EMAIL PROTECTED]> wrote: > I am tring to write a perl script that will add a user and set up their > password. I have no problem adding the user, using a system call to the > useradd command. I am tring to set the password like this: > > open(PASSWD, "

Re: Off topic PERL question...

1998-04-04 Thread Bench
Try using Expect. I use version 5.18 because of some problems I experience with the new versions of it (5.24 and the version included with Redhat 5) and use Tcl 7.4 for this old version of Expect. Look at the example file 'autopasswd' and start from there. If you're using PAM authentication, yo