Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 06-02-2012
Registered User
 
Join Date: Jun 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
How a process can check if a particular process is running on different machine?

I have process1 running on one machine and generating some log file. Now another process which can be launched on any machine wants to know if process1 is running or not and also in case it is running it wants to stream the logs file generated by process1 on terminal from which process2 is launched.

Process2 will be invoked as follows: process2 -dir "DirPath". In this DirPath process1 has written a file which has information like "pid of process1", "hostname of process 1" and "log file of process1". So process2 can access this file and has all the information about process1. Now process2 wants to know if process1 is currently running or not and if it is running then it needs to stream data written by process1 in logfile to the terminal from which process2 is launched.
Sponsored Links
    #2  
Old 06-02-2012
...@...
 
Join Date: Feb 2004
Location: NM
Posts: 9,644
Thanks: 164
Thanked 639 Times in 616 Posts
Are the file systems shared (clustered or nfs mounts) across machines?

In other words how do you expect to have a process on machine a see the files open on another, say machine b?
Sponsored Links
    #3  
Old 06-02-2012
Registered User
 
Join Date: Jun 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Yes, file system is shared through NFS
Sponsored Links
Closed Thread

Tags
c++ in unix; process management

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
need to check if the process is running shifahim Shell Programming and Scripting 8 08-18-2011 10:17 PM
How to check if process is running? ladyAnne UNIX and Linux Applications 5 05-01-2010 01:20 AM
Check if Process is running Raynon Shell Programming and Scripting 3 01-08-2010 02:03 AM
check process running rose1207 Shell Programming and Scripting 4 12-28-2007 12:23 AM
leave a process running in a remote machine pbasil UNIX for Dummies Questions & Answers 3 03-15-2006 09:04 AM



All times are GMT -4. The time now is 06:40 AM.