Link to home
Start Free TrialLog in
Avatar of nicky s
nicky sFlag for United States of America

asked on

SFTP

what are the quivalent commands for sftp

ftp -n -i $FTPSERVER <<EOF 2>&1 >/dev/null
user ${FTPUSER} ${FTPPWD}

Open in new window

Avatar of Bryan Butler
Bryan Butler
Flag of United States of America image

Depends on the sftp app you are using.  There probably wont be an exact match.  Are you using this sftp?
http://www.openbsd.org/cgi-bin/man.cgi?query=sftp&sektion=1

I don't think this accepts piped input, in which case there is no equivalent.

Oops, it does take piped input.  So if that's the sftp you are using, then you might be able to find an equivalent.
ASKER CERTIFIED SOLUTION
Avatar of jeremycrussell
jeremycrussell
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Even better....
Learn a bit about ssh-keys..  They're actually more secure than passwords, and permits automated login.
(not to be confused with .netrc, which is clear-text and not to be considered secure)

Then you can automate stuff such as this...
(echo lcd /some/application_dir; echo put myfile;echo quit) | sftp  userid@hostname.domain
Curios, which client did you end up going with?