how to push data in to ssh in python?

Sam Wun swun at esec.com.au
Mon Jul 3 19:51:03 EDT 2000


Oh yes, I actually print it to the stdout, and intended to use command "ssh -l
swun hostname < out.dump" to send out.dump to the "hostname" in "swun" account,
but I am not sure how to set up the "swun" account to receive this transaction.

Thanks
Sam.

Thomas Wouters wrote:

> On Mon, 03 Jul 2000 11:56:41 +1000, Sam Wun <swun at esec.com.au> wrote:
>
> >Thanks
>
> Your question is incomplete. What do you want to do ? Did you look at
> popen(), and is it not what you want ? Does ssh require the input to come
> from a pseudo-terminal ? Can't you use a normal shell pipeline and make your
> python script just 'print' what you want to output ? Are you encountering
> difficulties with any of these ideas, or not finding the right documentation?
>
> Oh, and it's not necessary to post both in HTML and in plaintext.. Just
> plaintext will do just fine ;)
>
> How-do-I-get-a-zilion-dollars-ly y'rs,
>         Thomas.

--
Sam Wun                            Firewalls / Security
OneGuard Senior Software Engineer  Electronic Commerce
eSec Limited                       Phone: +61 3 83715376
mailto:swun at eSec.com.au            C++/JAVA/UNIX/OOP/OOD


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20000704/a2f39ca6/attachment.html>


More information about the Python-list mailing list