![]() |
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 |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How we can use plink? | shekhar_ssm | Shell Programming and Scripting | 0 | 03-16-2008 12:35 PM |
| Script works on Solaris, not on Linux | Silverhood | Shell Programming and Scripting | 1 | 10-05-2007 09:52 AM |
| perl - how come this script works? | mjays | Shell Programming and Scripting | 3 | 09-17-2007 10:50 AM |
| works from cmd-line but not in script | OFFSIHR | Shell Programming and Scripting | 4 | 10-18-2006 08:41 AM |
| Script works fine until I | more | Skovian | Shell Programming and Scripting | 2 | 01-11-2006 11:17 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
I have a one line bat script run off a XP machine that tar's and compresses some files from a Sol 8 box. It goes something like this (a bit simplified)....
plink -pw <passwd> user@host "tar -cvf - -C / tmp/a_file | compress " > a_file.tar.Z So this works....and it's worked many times. But now I can't have the password in the script. So I've tried many variations of the command. But once I have the tar.Z on the XP machine, WinRAR complains about the archieve (corrupt or can't read it). So far I've tried: plink user@host ..... plink host..... plink -l user host....... plink host -l user..... Any advice or tips would be appreciated -Yinzer |
|
||||
|
Can you run the bat file interactively and enter the password as a parameter, substitute the parameter in the script.?
You can also set up authentication keys on the remote unix host, if it is allowed. That suppotts the plink host -l username format without having to enter a password. Last edited by jim mcnamara; 08-29-2006 at 01:10 PM.. |
|
||||
|
Quote:
I had to do that for some Unix scripts the other day. This may be a long and painful experiment hehe..... |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|