May 16, 2002 #1 jrradio Technical User May 16, 2002 1 US I need to write a script to change the password without having to type the new password. I would like it to read the new one from a file.
I need to write a script to change the password without having to type the new password. I would like it to read the new one from a file.
May 20, 2002 #2 RobJordan MIS Apr 3, 2001 296 US I would recommend expect or the expect module for perl for an interactive task like this. Robert Robert G. Jordan Unix Sys Admin Sleepy Hollow, Illinois U.S.A. http://www.InYourMind.comFREE Unix Scripts Upvote 0 Downvote
I would recommend expect or the expect module for perl for an interactive task like this. Robert Robert G. Jordan Unix Sys Admin Sleepy Hollow, Illinois U.S.A. http://www.InYourMind.comFREE Unix Scripts
May 20, 2002 #3 RobJordan MIS Apr 3, 2001 296 US http://expect.nist.gov Robert G. Jordan Unix Sys Admin Sleepy Hollow, Illinois U.S.A. http://www.InYourMind.comFREE Unix Scripts Upvote 0 Downvote
http://expect.nist.gov Robert G. Jordan Unix Sys Admin Sleepy Hollow, Illinois U.S.A. http://www.InYourMind.comFREE Unix Scripts
May 20, 2002 #4 Arrumac Technical User Jan 30, 2002 8 GB read <variable name> < <filename> passwd <variable name> can be easily made more functional with error traps etc Upvote 0 Downvote
read <variable name> < <filename> passwd <variable name> can be easily made more functional with error traps etc