Hi,
I was provided with sftp servername, user and password and the requirement is to connect to sftp server using credentials provided and drop the file.
Manually i am able to connect with commands like
sftp user@servername
and after clicking enter, i was asked for a password and entering the password i am able to get it the remote server.
How can i do the same using scripts i.e when i execute
Hi,
I have a ftp script there I want to store the o/p of the below command:
Code:
sftp -b <batch file> user@password
cat <batch file>
get /remote/file/path/remote_file_name.csv*.gz /local/path
Now the problem is that when I fire this command.
Hi,
Hi All,
I am using SFTP command to transfer the file.
Code:
SRC=`pwd`
DIG=123
/bin/sftp -B /dev/stdin xyz@abc.net <<::
mput ${SRC}/GGG.${DIG}.tar.gz
bye
::
The problem is, after entring into sftp command, it is not taking variable values of SRC and DIG.
can someone help me what is the other way.
I'm logged into a remote server via SFTP at the command line. The folder I'm in contains hundreds of thousands of files.
I have read documentation on SCP and just trying to figure out how go about doing this - below are two pieces of code, one is SFTP and one is SCP. My goal is to have this done via password-less authentication, fully automated.
How to use SFTP to get the files on unix server from anoter unix server without sending the password.
This is below script wrote
------------------------------------
#!/bin/ksh
#!/usr/local/bin/expect
sftp -oPort=<PORt_number> <Ipaddress> <<EOF
expect "password:"
send <password>
cd /test/test1
mget *.csv
bye
EOF
---------------------------------------
after runni
Hi,
I want to execute shell script with in sftp session for remote server.
like i have a shell script test.sh that is on local server.i want to execute that script on remote server
sftp user@192.168.56.10
sftp> test.sh ---execute for remote server not for local server.
sftp oracle@192.168.56.101 << EOF
cd /home/ibney
test.sh # i want to execute this shell script on
Hi to all!
I'm new to unix and I looking for a solution for a shell I'm developing.
In this shell I have a list of filename (get from a database).
For each filename I must connect to another server via sftp connection in order to verify if there is a file with that filename.
After the filename, I must check also the modified date of the file on the remote server, to choose If get the file or