473,406 Members | 2,217 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Re: Getting pid of a remote process

HI,
I am using Solaris and subprocess.Popen to spawn a process on a remote machine.
Thanks,
Srini

----- Original Message ----
From:Diez B. Roggisch <de***@nospam.web.de>
To: py*********@python.org
Sent: Monday, 18 August, 2008 9:23:20 PM
Subject: Re: Getting pid of a remoteprocess

srinivasan srinivas schrieb:
Hi,
Could you please suggest me a way to find pid of a process started on a remote machine by the current process?? I should get pid in the current process environment. The approach should be somewhat generic. It shouldn't expect the remote process to print its pid.
Without information about

* - the OS you use

* - the technique you use for spawning processes remote

there is no answer to this.

Diez
--
http://mail.python.org/mailman/listinfo/python-list

Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mai...tools-08.html/
Aug 19 '08 #1
1 2767
srinivasan srinivas schrieb:
HI,
I am using Solaris and subprocess.Popen to spawn a process on a remote machine.
No, you are *not* doing that. You are maybe using subproces to run SSH
to spawn a remote process. Why don't you *show* us how you actually do that?

DIEZ
Aug 19 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Joshua Beall | last post by:
Hi All, I am doing some work where I want to do locking, and prevent scripts from running in parallel. I see that I could use the semaphore mechanism, but I'd like for my code to be portable,...
5
by: hangten | last post by:
I have a service that 1) uses filewatcher to watch a directory on a remote machine. 2) checks if a certain application is running on the local machine before starting it. The problem is while...
1
by: db | last post by:
Hello, I am writing a utility to get the performance counters from a remote machine. Currently, I am usign the System.Diagnostics.PerformanceCounter class to retrieve these counters, but they...
0
by: Steve D | last post by:
Following up a message I posted yesterday, I am writing a program using Process.GetProcesses(remotecomputername) to monitor processes on other computers in a network. It seems to work fine for some...
0
by: XxLicherxX | last post by:
Hello everyone, I a program that pulls the processes off of remote machines using the Process.GetProcesses() function. What I want to be able to do is get some information about the process,...
7
by: Ctal | last post by:
What is the best way to have my windows app run a .bat file on a remote server? The .bat will need to run as an admin on the remote machine. Additonally I need for my windows app to wait for the...
33
by: JamesB | last post by:
I am writing a service that monitors when a particular app is started. Works, but I need to get the user who is currently logged in, and of course Environment.UserName returns the service logon...
1
by: srinivasan srinivas | last post by:
Hi, Could you please suggest me a way to find pid of a process started on a remote machine by the current process?? I should get pid in the current process environment. The approach should be...
1
by: srinivasan srinivas | last post by:
This is wat i am doing : args = I am giving this to subprocess.Popen() Thanks, Srini ----- Original Message ---- From: Diez B. Roggisch <deets@nospam.web.de>
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.