When we change a password for a user (I work with an Internet Provider)
we have to:
rlogin to our password-server,
rsudo rpassword 'nodename'
answer to the cryptocard dialog,
set a new password.
exit the password-server,back to 'kantoor'-server,
vile /home/support/changes
append a log-line to changes,
exit vile.
I've been asked to automate this in a script, so that one command would do
the login to the server, issue de rsudo etc. command, logout of the server
and start-up vile.
problem is: I haven't found a way to tell rlogin to issue a command on the
server just logged onto, and rsh doesn't allow interactive commands, and
both rsudo and vile are interactive.
I hope and believe that there is a simple solution to this, but I haven't
found this in the manpages for rlogin or rsh.
suggestions?
Armand A.Verstappen (Technical Support)
Demon Internet Amsterdam