set_include_path(get_include_path() . PATH_SEPARATOR . 'C:\wamp\www\Web Apps\backend\phpsec');
include ('phpsec/Net/SSH2.php');
$ssh = new Net_SSH2('www.example.com');
if (!($ssh->login('userlogin', 'password'))) {
exit('Login Failed');
}
echo "Login Success<br>";
$output=$ssh->exec('crontab -e;30 17 * * 1 /path/to/command')
echo "$output";
Here I am trying to set cron job. But it gives following error "Error opening terminal: unknown. /usr/bin/crontab.cagefs: "pico" exited with status 1 bash: 30: command not found" So how to set cron job using phpseclib?