Joined
Last Seen
0 Reputation Points
Unknown Quality Score
No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
0 Endorsements
Ranked #55.0K
2 Posted Topics
Hi all, I'm trying to run 'svn update' on a given directory as a subprocess in python. I need to redirect the output of this process (svn update) to a file called updste.txt. And if 'svn update' fails, I'm trying to send out a mail to myself with the file … | |
Re: You can use the following code snippet to connect thru ssh and also do scp. # Login to ABC Machine via SSH child = pexpect.spawn('ssh -l %s %s'%(ABCusername, ABChostname)) i = child.expect([pexpect.TIMEOUT, SSH_NEWKEY, COMMAND_PROMPT, '(?i)password']) if i == 0: # Timeout print 'ERROR! could not login with SSH. Here is … |
The End.