10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm making an sftp-connection to a remote server. I want the result of an ls-command in a local file and the result of ls on another folder in another local file. Because everything has to go as fast a possible I wan't to do everyting in one connection.
The command I use is : psftp -v -batch -b... (4 Replies)
Discussion started by: pistach
4 Replies
2. Shell Programming and Scripting
hi,
I am trying to automate a file download process using sftp. There is some logic to download files.
1) I need to login to destination server and then go to folder.
2) find list of files and count
3) using list of files I need to eliminate three selective files and download remaining... (1 Reply)
Discussion started by: getmilo
1 Replies
3. UNIX for Dummies Questions & Answers
Hi, guys, I am trying to automate a sftp process using "expect" method (since the key authentication method is disabled in my company network, there is no helping it).
In order to try, I type in the command manually:
sftp @ > << EOF
>cd
>ls -l
>EOF
>Connecting to
@servername password:
... (3 Replies)
Discussion started by: warmboy610
3 Replies
4. UNIX for Dummies Questions & Answers
Hi,
The script didn't continue as "20130109" folder is already created on the destination server. Please help.
Entry in script:
cat > $filebatch << __EOF__
mkdir $current_date
mkdir $current_date/$fpdomain
cd $current_date/$fpdomain
ls -l
__EOF__
Error:
sftp -b... (12 Replies)
Discussion started by: chococrunch6
12 Replies
5. Shell Programming and Scripting
Hi,
I want to establish a passwordless sftp between the two servers. I've searched the net and know the steps to be taken; which are as follows:
$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (~/.ssh/id_rsa):
~/.ssh/id_rsa already... (3 Replies)
Discussion started by: dips_ag
3 Replies
6. Shell Programming and Scripting
I am trying to use a for loop in my expect cmdFile that I am calling.
I want to be able to call either one file name or a series of file names in the working directory (that I won't know the names before hand) and then pass the names to the sftp program.
Something like for i in (ls *txt)
do (0 Replies)
Discussion started by: vedder191
0 Replies
7. Shell Programming and Scripting
Hi,
I've got a C program that is using execlp to run a non-interactive sftp (using a batchfile) session to send some files to another system.
Just before doing that, I create the batchfile called sftp_batch on the fly:
V8_26_1:sun-->cat /workspace/sftp_batch
cd /tmp/newsftp
put test.file... (2 Replies)
Discussion started by: Fiaran
2 Replies
8. Shell Programming and Scripting
Hi All,
I have created a script for an sftp transfer that works without a date variable being passed, I want it to work with a date variable being passed.
So, my initial script, mainsftp.sh, looks like this:
-----------------------------------------------------------------------
#... (1 Reply)
Discussion started by: j_miller
1 Replies
9. Shell Programming and Scripting
Hi All:cool:,
i tried to automate SFTP process after passwordless authendication.
Stil i am getting error...
Can anyone help....
-------------------
sample code below
-------------------
sftp -v $mdskk@100.4.4.75 << EOF
cd /data
mget *.tar.gz
bye
EOF... (2 Replies)
Discussion started by: senthil_seera
2 Replies
10. Shell Programming and Scripting
Several of our end-users need to send a file to our insurance carrier using ssh and sftp. We've put together a Windows VBS script that opens the ssh tunnel and calls sftp with the -b option pointing to a batch script in the same directory, however sftp doesn't seems to be reading from the... (1 Reply)
Discussion started by: kmw
1 Replies