![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with expect script | somedude | Shell Programming and Scripting | 4 | 06-04-2009 12:39 PM |
| Need Help with EXPECT script | markus2008 | UNIX for Advanced & Expert Users | 5 | 03-12-2008 08:49 PM |
| help with 'expect' script? | maeve | Shell Programming and Scripting | 0 | 06-02-2004 06:18 PM |
| Expect Script HELP | zuinc | Shell Programming and Scripting | 2 | 04-30-2002 09:42 AM |
| 'expect' tool | shaggy | UNIX for Dummies Questions & Answers | 2 | 09-27-2001 02:54 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
|
|
||||
|
what do these '>&4 2>&4 |&' mean on the line "telnet $HOST >&4 2>&4 |&" ??
Quote:
|
|
||||
|
Perderabo Script
Hello,
Many thanks for the script posted by Perderabo. I came across it many years ago, and it was an immense help in automating a password change on a number of servers and for a number of accounts on those servers. Now, I am in need of a script to do the same thing using SSH since our Unix Admins have disabled the Telnet process and are forcing only SSH access. Searching this web site and the internet for any assistance, it plainly became clear that the 'expect' package was the only solution that would do something similar to Perderabo's script. But, I had setup SSH authentication, copying the source servers RSA tokens to the destination servers authorized_keys file. I changed Perderabo's script to have just the two sections - 0 and 2. 0 to set the script up, request passwords, etc. and 2 to do the actual password change. I then changed 'telnet' to be 'ssh -t -t' and removed the USER and OLDPASS prints, since they are not needed due to the SSH automated authentication. Quote:
|
|
||||
|
Perderabo
Unix Daemon Hi Perderabo The script is really great. But in my system the option print -p and telnet is not working. I only have ssh and sftp enabled in the system. This is working in Linux but not in solaris. (sleep1; echo $OLD; sleep 1; echo $NEW; sleep 1; echo $NEW;sleep 1) | passwd Is there any other way to do this in solaris...... Hi Perderabo It is really a good script. In my machine print -p and telnet are not working. I am having sftp and ssh to write this type of script. I tried changing your script and implement it, but its not working. Is there any other way to change the password on multiple SunOS machines. The below command is working fine in Linux but not in SunOS. (sleep1; echo $OLD; sleep 1; echo $NEW; sleep 1; echo $NEW; sleep 1) | passwd. Could you please advice. Last edited by vbe; 07-16-2009 at 03:49 AM.. Reason: artefact |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|