From: Johannes G. <j_g...@ho...> - 2003-01-27 19:19:21
|
Thanks for your reply - that's what I feared ... ;0) I have in the meantime managed to dig through the code and make an automated answer to a password challenge possible ... Joh >From: Rasjid Wilcox <ra...@op...> >To: "Johannes Graumann" <j_g...@ho...>, >pys...@li... >Subject: Re: [Pyssh-discuss] Re: Re: Complete beginner and need for >scripted ssh/scp >Date: Mon, 27 Jan 2003 23:48:09 +1100 >MIME-Version: 1.0 >Received: from openminddev.net ([210.9.242.83]) by mc6-f23.law1.hotmail.com >with Microsoft SMTPSVC(5.0.2195.5600); Mon, 27 Jan 2003 04:46:59 -0800 >Received: (qmail 12524 invoked by uid 5011); 27 Jan 2003 12:46:57 -0000 >Received: from [192.168.0.2] (HELO yoda.openminddev.net) (192.168.0.2) by >openminddev.net (qpsmtpd/0.20) with SMTP; 2003-01-27 12:46:57Z >X-Message-Info: dHZMQeBBv44lPE7o4B5bAg== >X-Scanned-By: AMaViS powered >User-Agent: KMail/1.4.1 >References: <F58...@ho...> >In-Reply-To: <F58...@ho...> >Message-Id: <200...@op...> >X-SMTPD: qpsmtpd/0.20, http://develooper.com/code/qpsmtpd/ >X-Sql-Maillog-ID: 2003.01.27.23.46.56.12518.0.146166165216954 >X-Spam-Check-By: openminddev.net >X-Spam-Status: No, hits=-4.4 required=5.0 >tests=CARRIAGE_RETURNS,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_KMAIL >version=2.43-cvs >Return-Path: ra...@op... >X-OriginalArrivalTime: 27 Jan 2003 12:47:00.0066 (UTC) >FILETIME=[2F018C20:01C2C602] > >On Fri, 24 Jan 2003 3:55 am, Johannes Graumann wrote: > > christian laubscher <christian@ti...> said: > > >def main(): > > > mycon=pyssh.Ssh('tiger','localhost','22') > > > mycon.set_debuglevel(0) > > > mycon.set_sshpath(pyssh.SSH_PATH) > > > mycon.login() > > > cmd='ps auxw | grep httpd | grep -v grep ; echo $?' > > > C=mycon.sendcmd(cmd) > > > print C > > > mycon.close() > > > > > >main() > > > > That got me roling! Thanks! > > > > Another question (I know that this is bad style, but I'd like to do it > > anyway): can I hand ssh the password as a variable? How? > > > > Another question (it never stops ... ;0): How do I do scp - I think > > sourceforge sells pyssh als ssh AND scp wrapper? > >Ah. I must update the website some more. My appologies, but the website >was >put up by the original maintainer, who had grand plans for pyssh that never >quite came to pass. I took on maintanence (essentially by re-writing >pyssh) >last year, but have only recently updated the website, and then only >minimally (just enough to point people at the current version, and not the >old one). > >So the short answer is that, no, it is currenly not a scp wapper, although >I >think it could be adapted to be so with fairly little work. Feel free to >take on the task. ;-) > > > > > ># ymmv ;-) > > > > ? > >Ymmv: Your miliage may vary. > >Cheers, > >Rasjid. > > >-- >Rasjid Wilcox >Canberra, Australia (UTC +10 hrs) >http://www.openminddev.net _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus |