login about faq

We are facing one issue while getting file from windows to our unix serve through sftpg3. while we execute below command one by one it works fine.

sftpg3 --password=file://"$HOME/.passwords/paawordfile" user@ip#269
pwd
quit

but when we try to execute the commands in a single step as below it is not working.it login into the remote machine but the pwd or any other commands are not working. immediately it execute the quit command and logged out of remote system.

sftpg3 --password=file://"$HOME/.passwords/COGNOSTECTIA" COGNOSftp@134.46.203.150#269     <<EOF
pwd
quit
EOF

Could anybody help on this?

asked Oct 09 '10 at 14:19

Kannan's gravatar image

Kannan
111

edited Oct 10 '10 at 19:39

Roman's gravatar image

Roman ♦♦
7735817


Try adding the following option:

 -B -

Note the dash after the -B. This instructs sftpg3 to read from stdin. At least when using version 6.1.7. What version of Tectia client are you using?

Can be seen by running:

sftpg3 -V

More information about the syntax can be found here

link

answered Oct 11 '10 at 05:35

Roman's gravatar image

Roman ♦♦
7735817

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×81

Asked: Oct 09 '10 at 14:19

Seen: 4,543 times

Last updated: Mar 28 '11 at 21:22

All user contributed content licensed under the cc-by-sa license.
Powered by OSQA.