How to know if a ghost cast session is free ?

DeWaRs's picture

Hello,

I want to know if it's possible, before starting ghost, if the session call with -ja=session name is free. 

I explain : I have a batch menu who run different ghost image with the commande ghost.exe -ja= session name -sure
If the session already in use, ghost repport an error "unable to etablish contact with session "session nam" ", so I want to check in the batch, before running ghost if the session is free. 

Is it possible ? 

Thank you for your answers.

Best regards,

Manu

Eugene Manko's picture

No it is not possible but in

No it is not possible but in your batch script you can just as well code by starting ghost.exe and then verifying returned code from exe. If this is the error "unable to contact session" then you know it is not free and you can act on it.