This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$stringResponse = exec_timeout($caspercall, $timeout = 20);//Timeout in seconds. | |
/** | |
* Execute a command and return it's output. Either wait until the command exits or the timeout has expired. | |
* | |
* @param string $cmd Command to execute. | |
* @param number $timeout Timeout in seconds. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Casperjs - Obtener titulo sitio web | |
* chevere.pw | |
*/ | |
var casper = require('casper').create(); | |
casper.start('http://google.com/', function() { | |
this.echo(this.getTitle()); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test |