Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'url:sourceforge': 0.03; 'arguments': 0.07; 'python': 0.09; 'arguments,': 0.09; 'machines.': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'script,': 0.09; 'subject:script': 0.09; 'subject:using': 0.09; 'whitespaces': 0.09; 'subject:python': 0.11; '(the': 0.15; 'folks': 0.15; '12:50': 0.16; 'reasonably': 0.16; 'received:173.11': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'situation.': 0.16; 'subject: \n ': 0.16; 'subject:ssh': 0.16; 'string': 0.17; 'lets': 0.22; 'questions:': 0.22; 'task': 0.23; 'installed': 0.23; 'pass': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.28; 'run': 0.28; 'running': 0.32; 'ubuntu': 0.33; 'to:addr:python-list': 0.33; 'remote': 0.35; 'similar': 0.35; 'received:org': 0.36; 'two': 0.37; 'subject:: ': 0.38; 'to:addr:python.org': 0.39; 'header:Received:5': 0.40; 'subject:, ': 0.61; 'containing': 0.61; 'situation': 0.62; 'here': 0.65; 'our': 0.65; 'charset:windows-1252': 0.65; 'subject: & ': 0.67; "'local'": 0.84; 'lightweight': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Emile van Sebille Subject: Re: Passing arguments to & executing, a python script on a remote machine from a python script on local machine (using ssh ?) Date: Thu, 20 Sep 2012 07:50:51 -0700 References: <10db83e4-80eb-4265-b11c-062269fea1b0@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: 173-11-108-137-sfba.hfc.comcastbusiness.net User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20120713 Thunderbird/14.0 In-Reply-To: <10db83e4-80eb-4265-b11c-062269fea1b0@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 20 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1348152551 news.xs4all.nl 6954 [2001:888:2000:d::a6]:55565 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:29553 On 9/19/2012 12:50 PM ashish said... > Hi c.l.p folks > > Here is my situation > > 1. I have two machines. Lets call them 'local' & 'remote'. > Both run ubuntu & both have python installed > > 2. I have a python script, local.py, running on 'local' which needs to pass arguments ( 3/4 string arguments, containing whitespaces like spaces, etc ) to a python script, remote.py running on 'remote' (the remote machine). > > I have the following questions: > > 1. What's the best way to accomplish my task ? Check out http://rpyc.sourceforge.net/ -- It's reasonably lightweight and has been working well for our similar situation. Emile