Anyone know how to check if a process is running on remote mac?

Discussion in 'Mac Programming' started by dazey, Aug 25, 2009.

  1. dazey macrumors 6502

    Joined:
    Dec 9, 2005
    #1
    I am writing a small Xcode application to control 5 ingest computers. I have a xcode Gui that allows users to select how many of the 5 machines they want to start, hitting record then fires applescripts that opens SSH communications to each machine and runs a local applescript on the machines to start recording and timestamp the file. What I would also like to be able to do is to provide real feedback that the units are recording. I am applescripting AJA VTR exchange which does not provide any feedback so the only way I can think of doing it is to look for the running thread but I am not sure how to go about this.
    Does anyone have any pointers?
    Cheers
     
  2. Cromulent macrumors 603

    Cromulent

    Joined:
    Oct 2, 2006
    Location:
    The Land of Hope and Glory
    #3
    Use the ps (process status) tool via your SSH connection.
     
  3. dazey thread starter macrumors 6502

    Joined:
    Dec 9, 2005
  4. Tex-Twil macrumors 68020

    Tex-Twil

    Joined:
    May 28, 2008
    Location:
    Europe
    #5
    I would also go this way. Something like

    Code:
    ssh [I]computer_ip[/I] ps -C your_proccess_name
    
    I'm not sure if the -C parameter works on OSX, I'm on Linux now.
    Tex
     

Share This Page