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
I have written a Unix Script to automate the process of File transfer from Our server to vendor Server but the automation Script fail when Progress meter is around 65-70% Complete.
Hello all,
I am currently writing a script to send files to a server over sftp.
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
Dear community,
I have to copy a file from Red Hat to another server that supports only SSH2.
SFTP command from Red Hat works fine, but since I have to insert SFTP command into a script, is it possibile to PUT file using SFTP in "one" line code?
Or, anyway, without using external file?
This works, but instead to put, it GET the file FROM the server:
Code:
sftp user@10.99.1.12:/
Hi All Experts,
I have a script which logs to the server via sftp connection with below code :-
user_name@sftp_server.com
and the connection is going smooth.
My requirement is to place file in sftp_server in some path.
and if path doesn't exist or the file is not put successfully I need to raise an exception.
Below is the code which I am using to accomplish my requirement but the error for p
All,
I am new to shell scripting and trying to get the count of files that starts with error and with extension .out, if the count is greater than 0 and zip the file and send an email with the content of error.out file, here is my script
Code:
cd /temp
testcount =$('find .
I have to do an exercise: there is a file which contains this text
dirA dirB
dirX dirY
dirA dirD
Each line has two directories, the script must check for each line if any file of the first directory is contained in the second directory. Here is the script:
if [ $# -ne 2 ];then
echo "Error! Insufficient parameters"
exit 1
fi
if [ !
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