![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can a script runned in local server access remote server? | luna_soleil | Shell Programming and Scripting | 3 | 02-26-2009 05:38 PM |
| script to change the access permissions of the files | smartgupta | Shell Programming and Scripting | 3 | 01-13-2009 10:44 AM |
| How to uncompress zip files in a remote server from a script | rahul26 | Shell Programming and Scripting | 2 | 06-02-2006 02:14 PM |
| Remote Access | chrs0302 | SUN Solaris | 2 | 09-21-2005 03:30 PM |
| Need help to access/mount so to access folder/files on a Remote System using Linux OS | S.Vishwanath | UNIX for Dummies Questions & Answers | 2 | 07-30-2001 09:17 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Help with Script to Access Remote Files
I need to access files on remote servers and need to do this in a script because there are 100's of servers and 1000's of files.
I've tried ssh user@host 'ls -l /dir path/fileName' but cannot figure out how to deal with the prompt for password (here document is of no help). I've read of a way to setup the local and remote hosts to permit ssh command to execute with out password but that is not a viable option in this case. Any suggestion on how to get a password into ssh or perhaps another method of accessing the file information appreciated. Thanks for your consideration... tw |
|
||||
|
Thanks but that is not a practical solution since there are somewhere around 600 servers and the list of servers changes frequently. I'm thinking the way to go is with an expect script and am trying to see if I can get that to work for me.
I will likely use your suggestion in other applications and do appreciate it. Thanks. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|