Search Results

Search: Posts Made By: Asad
3,384
Posted By Asad
Hi , I fixed my code : expect...
Hi ,

I fixed my code :

expect "sftp>"
set timeout -1
send "get $SOURCE_FILE $TARGET_DIR\r"

It works fine
3,384
Posted By Asad
Sftp transfers file partially
Hi ,

I tried :
/usr/bin/rsync -qpavzh --rsh="/usr/bin/sshpass -f '/usr/local/rsync/.info' ssh -o StrictHostKeyChecking=no -l username"...
3,384
Posted By Asad
Sftp transfers file partially
Hi ,

It gives me the following error :

rsync /A/B/C/asad username@server.com:patch/file1.zip

Password:
exec request failed on channel 0
rsync: connection unexpectedly closed (0 bytes...
3,384
Posted By Asad
Hi Neo , rsysnc doesnot...
Hi Neo ,

rsysnc doesnot work on my system only solution I see is except

Thanks,
3,384
Posted By Asad
Sftp transfers file partially
Hi ALL,

I have a shell script using except :

#!/bin/bash
HOST=abc.com
USER=abc
PASSWORD=123
SOURCE_FILE=file1.zip
TARGET_DIR=/A/B/C

/usr/bin/expect <<- EOF

spawn /usr/bin/sftp...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 11:33 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy