<font face="trebuchet ms,sans-serif">I rally recommend using key authentication, you could have something like:<br><br>$ scp -i key.pem /home/user/my_file user@host:/home/user/my_file_online<br><br><br><br clear="all"></font>Atenciosamente,<br>
__<br><b><font color="#3366FF">Paulo Sampaio</font></b><font color="#999999" size="1"><i><br></i></font><div><font color="#000099" size="1"><i><a href="http://devio.us/~psampaio/" target="_blank">http://devio.us/~psampaio/</a></i></font></div>
<br>
<br><br><div class="gmail_quote">2012/10/23 Steve Flynn <span dir="ltr"><<a href="mailto:anothermindbomb@gmail.com" target="_blank">anothermindbomb@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 23 October 2012 19:59, Oliver Marshall <span dir="ltr"><<a href="mailto:oliver.marshall@g2support.com" target="_blank">oliver.marshall@g2support.com</a>></span> wrote:</div><div class="gmail_quote">
<div class="im"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div></div><div>Really its a limitation of our management tool when it runs under linux. It has problems with things like the ftp command where it requires the commands to be in a text file. It's easier for us to have everything on one line, the host, username, password, file source and destination. I used to use gftp but for various reasons I can't in this instance. </div>


</blockquote><div><br></div></div><div>I see. Would it be acceptable to have the commands to upload the file in a here document, as in:</div><div><br></div><div>sftp <a href="mailto:user@1.2.3.4" target="_blank">user@1.2.3.4</a> << ALL_DONE</div>


<div>I_cant_believe_you're_still_using_passwords!</div><div>lcd my_local_directory</div><div>cd /remote_directory/</div><div>put myfile their_file</div><div>bye</div><div>ALL_DONE</div><div><br></div><div>?</div><div>


<br></div><div>I'm assuming this also causes some issues for your environment, but to be honest, I can't think of an sftp client which can do what you require... mind you, I've only really spent any time with sftp as I've never had to work under the restrictions you have.</div>
<span class="HOEnZb"><font color="#888888">

<div><br></div><div>-- </div></font></span></div><div class="HOEnZb"><div class="h5">Steve<br><br>When one person suffers from a delusion it is insanity. When many people suffer from a delusion it is called religion.<br>
<br>
</div></div><br>--<br>
ubuntu-users mailing list<br>
<a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users" target="_blank">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br>
<br></blockquote></div><br>