Operating System - HP-UX
1826421 Members
3287 Online
109692 Solutions
New Discussion

Run CHFN in a non interactive mode

 
Michael Boul
Occasional Advisor

Run CHFN in a non interactive mode

I have a problem to synchronize across 50 machines the gecos information. Using perl, using system calls, whatever. Trying usermod or usermod.sam issues the error users logged in. However, root or a user can run chfn and works fine. We are running across 10.20 11.00 and 11.11. Anyhelp will be tried and tested...

Thanks
mike
3 REPLIES 3
Peter Godron
Honored Contributor

Re: Run CHFN in a non interactive mode

Michael,
have you had a look at expect ?
This will enable you to mimic user input.
Michael Boul
Occasional Advisor

Re: Run CHFN in a non interactive mode

Thanks, Yes. But we are currently having to move fast. I did run accros the -F switch with usermod.sam in one of the technotes and it appeared to fix the immediate problem.

Thanks for your reply and direction.
mike
Michael Boul
Occasional Advisor

Re: Run CHFN in a non interactive mode

usermod.sam -F works.
mike