![]() |
|
|
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 |
| How transfer sql file from one serverto another without username and password | Arpitmitm | AIX | 1 | 06-01-2008 03:52 AM |
| FTP Download username and password | kumarrana | UNIX for Dummies Questions & Answers | 2 | 05-11-2008 09:45 PM |
| username password in script | roshanjain2 | Shell Programming and Scripting | 5 | 02-13-2007 05:47 AM |
| setting username and password for ftp | div | UNIX for Advanced & Expert Users | 1 | 12-08-2006 11:09 AM |
| redirecting password as username for rlogin | seaten | UNIX for Dummies Questions & Answers | 1 | 05-12-2005 03:46 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
hi all
i am very new to unix. we had the below scenior test.bat file which contains ftp -s:logfiles.scr servername logfiles.scr contains username password cd path get file bye We had n number of batch(.bat files). which is having the same kind of scr file pointing same unix user. but getting different file we dont know how to avoid the repeated username/pwd in all scr . When we tried in a seperate scr for username/pwd. it is not login to unix. like userid.scr username password if anybody has the solution to keep username/pwd in a seperate file or parameter. Pls give us with some example |
|
||||
|
Hi
thank for reply. Actually we had same host detail in all scr but getting different files from unix. instead of keeping host details(username/password) in all files. we would like to keep it in a separate file. once the username or pwd change we can change in a singlel file. We are very know to unix. using ftp we have to get unix files through scr. Pls give some samples....that may help to us |
|
|||||
|
You can write a file like: Code:
host1 username password host2 anothername passw0rd ... Read that file with while/read and parse all 3 parameters into some ftp here-script. What might be (if possible in your environment) better is using ssh and so with sftp/scp. You can just exchange the public keys and at least can leave out the usernames and PWs of the list; and it's also encrypted. |
![]() |
| Bookmarks |
| Tags |
| linux |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|