how to run multiple processes from a single process?
I am porting a win32 c++ program on Linux which first reads a list of
processes and their paths from a file.Then this program should launch
all of thesese processes.
I tried to achieve this using fork() and execv() API calls. but
execv() method call is synchronous
and does not return untill user closes the child application or a
launch program error occurs.
Is there any other API / alternate solution available in Linux C++?
Thanks in advance.
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
...Process.destroy() -- process carries on running?
Still having trouble with Process.exec(). The story so far:
- I create a separate thread to run a process and do a join(10000)
to wait for it with a timeout of 10 seconds. If the thread is
still alive after the join, interrupt it.
- The thread running the process uses exec() to create the external
process, creates two threads to read from stdout and stderr until
they get a null (indicating the process has ended), and then waits
usinf proc.waitFor(). If interrupted, it calls proc.destroy().
I display some debugging messages, and I have written a little test
program that I spawn ...[9fans] process group, processes running in the background
Content-Type: text/plain; charset=ISO-8859-1
is there any simple way how to identify processes belonging to one concrete
Is there any simple way how to change a process' group?
Is there anything like pstree in plan9?
Content-Type: text/html; charset=ISO-8859-1
Hello,<br><br>is there any simple way how to identify processes belonging to one...Spawn a process, then exit, whilst leaving process running?
I have a Python script that I'd like to spawn a separate process (SSH client, in this case), and then have the script exit whilst the process continues to run.
I looked at Subprocess, however, that leaves the script running, and it's more for spawning processes and then dealing with their output.
Somebody mentioned multiprocessing, however, I'm not sure quite sure how that would work here.
What's the most Pythontic way of achieving this purpose?
On Fri, 08 Feb 2013 21:04:33 -0800, Victor Hooi wrote:
> I have a Python script that I'...Run a python script as an exe and run a new process from it
I've a strange requirement where I need to run a python
script just as we run an exe (by double clicking through windows
explorer or by typing the script name at command prompt). In that
process I should be able to execute another python script in such a
way that, the second script should continue running but the main one
should terminate without effecting the second one.
My requirement may be little confusing so please
get back if you didn't understand what I meant above.
On Thu, 2009-02-26 at 04:55 -0800, venutaurus539@gm...Can root processes become parent of another running process?
We have a process that runs as root and spawns a bunch of other apps
and monitors them for SIGCHILD signals. If this parent process dies,
we want to be able to restart it and "assign" itself as the parent of
any previously spawned processes (it writes a list of their PIDs to a
backing store that it would read when it restarted). Is this even
possible? We're using Solaris 8 but may be upgrading to 10 soon.
On Tue, 03 Jul 2007 17:26:51 -0000 "email@example.com" <firstname.lastname@example.org> wrote:
> We have a process that runs as root and spawns a bunch o...How can get process id of a process running on remote machine.
I have run a process on remote machine with system() call using "ssh
Process is up and running on remote machine. Is there any way i can
find PID of a process running in remote machine. I couldnt do that
with system("ps -aef | grep process | awk....."), since we can't get
output of a command run using system() call. Can any one help?
Thnx in advance,
On Nov 22, 8:33 am, sandy <rayapudisand...@gmail.com> wrote:
> I have run a process on remote machine with system() call using "ssh
> abc@host ...processes running
I have the following command
ps -fu oracle | grep -v grep | grep ora_pmon_RCAT
which gives me the following result:
oracle 78608 1 0 15:22:04 - 0:00 ora_pmon_RCATPROD
oracle 93424 1 0 10:09:22 - 0:00 ora_pmon_RCAT
I want a command to give only the last process i.e
oracle 93424 1 0 10:09:22 - 0:00 ora_pmon_RCAT
I am trying to see if an Oracle database is running and I have two
databases with the name RCAT and RCATPROD.
If i give that ps command based on the ORACLE SID i get both processes
but i want only for example the RCAT pr...How to run program in background. How to list my processies and kill a running process
How would I do this on a vax?
Chris L wrote:
> How would I do this on a vax?
OpenVMS VAX does not have the concept of foreground and background
processes, that's Unix.
As for process control:
RUN/DETACH, SUBMIT, sys$creprc, lib$spawn, SPAWN, etc.
As for process display:
SHOW SYSTEM, SHOW PROCESS, etc.
As for deleting a process:
The OpenVMS HELP library (once you get your system, or should you
have access to another OpenVMS system) and the User's Guide and the
Programming Concepts manuals ...