Python Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPython Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old May 24th, 2004, 09:11 AM
winwin winwin is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 21 winwin User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
connect by ssh to another computer

Hello,

I need some help on this little problem of mine... On the network i'm working on I have to connect by ssh to other nodes.
I want to call a C program with python with the os.system(command) function, but the computer I use to launch all my python scripts doesn't have the good processor architecture to launch this particular C program (and I cannot compile it for this processor since the source codes are corupted).
I would like to log on to another computer on the network and use the C program, and then logout again once the calculating is done...

Do you see a way to do that?

Little precision: I don't need a password for the ssh command on this network.
Little precision number 2: python is not installed in the same directory in the other computers of the nework...

Reply With Quote
  #2  
Old May 24th, 2004, 02:59 PM
percivall percivall is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 133 percivall User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
You might want more help than this but take a look at Paramiko. Paramiko is a set of Python modules for enabling ssh connectivity. Look for instance at the included demo.py script. It's the same thing as setting up a remote shell with the ssh client.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPython Programming > connect by ssh to another computer


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway