Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Spawning, and Killing, a Process

Reply
Thread Tools

Spawning, and Killing, a Process

 
 
brolewis
Guest
Posts: n/a
 
      01-31-2005
I am writing a program on Windows (XP Pro) that as part of the
application takes advantage of rsync's ability to synchronize a client
and server computer. However, because of the nature of our company's
policies and our proxy, I must connect using SSH and use it as a tunnel
to get to the location I need on the inside.

My delimma is that I need to be able to spawn a process that uses the
SSH, runs rsync, and then I need to be able to kill the SSH process and
do not know a way to do that in Windows. I also would prefer to have
SSH run invisible to the end user (no new window) which I get when
using spawnl

The commands I am running are as follows:

SSH Tunnel:
ssh -i file_name -L
873:200.200.60.60:7000 -N

Rsync Command:
rsync -azv rsync_user@127.0.0.1:ackage .

I am aware that you should be able to run ssh inside of rsync but there
seems to be a problem with the port of rsync that prevents me from
accomplishing this.
I thank you in advance for any assistance you are able to give.

 
Reply With Quote
 
 
 
Reply

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Process Cannot access file "file_name" because it is being used by another process Rithesh Pai ASP .Net 1 08-22-2005 03:02 PM
A process serving application pool 'DefaultAppPool' exceeded time limits during start up. The process id was '216'. jack ASP .Net 0 08-01-2004 09:49 PM
System.Diagnostic.Process and disfunctional process Michael Johnson Sr. ASP .Net 5 02-17-2004 04:32 PM
System.Diagnostic.Process and disfunctional process. Michael Johnson Sr. ASP .Net 0 02-17-2004 10:30 AM
Are all the signals read in the process should appear in the sensitivity list of the process? walala VHDL 3 09-09-2003 07:47 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57