How can we know from Linino that sketch is running ( or arduino is running )

Process p;		
  p.begin("sendsketchname.py");	
  p.addParameter(String(__FILE__));

or

Bridge.put("sketchname", String(__FILE__));