Skip to content

Instantly share code, notes, and snippets.

@walterdavis
Created January 4, 2013 22:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save walterdavis/4458270 to your computer and use it in GitHub Desktop.
Save walterdavis/4458270 to your computer and use it in GitHub Desktop.
var connected = function(){
return true;
if(fwShellCommand){
return fwShellCommand('ping -c1 -i1 http://ajax.googleapis.com');
}else{
var osa=new FWOSAInterpreter;
osa.fwWrite('do shell script "curl ajax.googleapis.com"');
osa.fwCompile();
return osa.fwRun();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment