
Kod
<?php
$ip = "steveo.pl";
$user = "login";
$pass = "haslo";
$wykonaj = "python hunter/stats.py > plik.log &";
$lacz= ssh2_connect($ip, 22);
ssh2_auth_password($lacz, $user, $pass);
$stream = ssh2_exec($lacz, $wykonaj );
?>
$ip = "steveo.pl";
$user = "login";
$pass = "haslo";
$wykonaj = "python hunter/stats.py > plik.log &";
$lacz= ssh2_connect($ip, 22);
ssh2_auth_password($lacz, $user, $pass);
$stream = ssh2_exec($lacz, $wykonaj );
?>
Wpisując adres skryptu do przeglądarki wyświetla się:
Cytat
Not Found
The requested URL /hunter/statystyki.php was not found on this server.
Apache/1.3.41 Server at steveo.pl Port 80
The requested URL /hunter/statystyki.php was not found on this server.
Apache/1.3.41 Server at steveo.pl Port 80