09-27-2012
Not sure -p is a valid option for mkdir in sftp... which explains what happened...
sftp is quite dumb you know... its not like an ordinary remote connetion...all the command it understand are limited in options...
Since yu are using sftp, dont you have ssh? ssh can be used in batch mode...
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
We used to have a ftp user id with no telnet session allowed in server side.
We used this ftp user id in script by transferring file from client to Server.
Currently we need to implement sftp to replace ftp.
We have tested few round and working fine by using sftp with normal user id (allow... (2 Replies)
Discussion started by: superdougl
2 Replies
2. UNIX for Advanced & Expert Users
Hi All Experts,
I hope you are all ok! :D
My question is simple but I was not able to find an answer in the internet, and that's why I am here!
My question is: when I sftp to a server and use "put -P" option to put a file, it keeps the file's full permission and access time. Check below... (5 Replies)
Discussion started by: felipe.vinturin
5 Replies
3. Shell Programming and Scripting
We have script running to SFTP some file to the remote server. The problem is the SFTP transfer returns an exit code of 0 even if there is permission error during file transfer, connection refuse (like when sftp server is down), thus, returning the status of the script as success.
I was thinking... (3 Replies)
Discussion started by: The One
3 Replies
4. Shell Programming and Scripting
Hi all ,
can any one tell me how to run a script within a sftp session. let me tell u in bit clear way :
After I connected to sftp location , cd ing to some directory then I need to execute a one script. Please tell me if u have any idea on this .
Looking forward to your reply guys... (1 Reply)
Discussion started by: sravan008
1 Replies
5. Shell Programming and Scripting
Hi,
what does -b option do in sftp batch mode..?:confused: (1 Reply)
Discussion started by: rahulsxn660
1 Replies
6. Shell Programming and Scripting
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. Currently we use SFTP and the script asks for the password of the... (20 Replies)
Discussion started by: Stigy
20 Replies
7. Shell Programming and Scripting
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... (3 Replies)
Discussion started by: SAUD PASHA
3 Replies
8. Shell Programming and Scripting
Can anyone explain me the below sftp command
sftp -oStrictHostKeyChecking=no @SFTP_PROXY_COMMAND@ -v oIdentityFile=$sftpIdentity -b $PutSFTPbatch.bat $sftpUrl
I need explanation for the below parameters with all their possible values
-oStrictHostKeyChecking=no @SFTP_PROXY_COMMAND@
-v... (1 Reply)
Discussion started by: Little
1 Replies
9. UNIX for Advanced & Expert Users
Hi All
Below is the script I am trying to execute to rename a file in an SFTP session.
It is in GNU/Linux.
This script is for generic use and so I am passing arguments. Everything in the script works fine except "reading the filename in SFTP session"
In the below script the... (2 Replies)
Discussion started by: sparks
2 Replies
10. Red Hat
Hi,
I have sftp installed in some of my corporate servers (test and production).
However, I notice that it does not have the limit(l) option for bandwidth limit option.
Why is this? Is it because sftp was not installed with other necessary packages?
How do I make sftp available with the... (4 Replies)
Discussion started by: anaigini45
4 Replies