kalo di cpanel tinggal atur pake cronjobs max load 3 menit [ */3 * * * *] ( angka aman dari mbah pesbuxz)

kalo cuman dapetnya di shell yah bikin cronjob sendiri/manual :p asal dari host serv ngijinin bikin cron pasti bisa .

Disini misalnya beda server antara bot dan remote, klo 1 server tinggal panggil bot .php nya pake cron jobs tadi. Kalo cuma numpang tanpa seijin yg punya kita panggil pake remote, disini kita coba pake perl.

source remote : misal nama filenya jempol.pl

 
#!/usr/bin/perl
 
use IO::Socket;
 
use IO::Select;
 
use Socket;
 
 
 
 
 
my $url = ("http://tempatuploadbot.com/bot/jempoler.php");
 
my $stat = query($url);
 
 
 
 
 
sub query($) {
 
    my $url = $_[0];
 
    $url =~ s/http:\/\///;
 
    my $host  = $url;
 
    my $query = $url;
 
    my $page  = "";
 
    $host  =~ s/href=\"?http:\/\///;
 
    $host  =~ s/([-a-zA-Z0-9\.]+)\/.*/$1/;
 
    $query =~ s/$host//;
 
    if ( $query eq "" ) { $query = "/"; }
 
    eval {
 
        my $sock = IO::Socket::INET->new(PeerAddr => "$host", PeerPort => "80", Proto => "tcp") or return;
 
        print $sock "GET $query HTTP/1.0\r\nHost: $host\r\nAccept: */*\r\nUser-Agent: Mozilla/5.0\r\n\r\n";
 
        my @r = <$sock>;
 
        $page = "@r";
 
        close($sock);
 
    };
 
    return $page;
 
}

=================

add cron manual via shell / bd ,

bikin file terserah namanya, misal jempol

crontab -l >jempol
echo ‘*/3 * * * * /usr/bin/perl /home/zr0b0tz/public_html/bot/jempol.pl’ >jempol
crontab jempol
cek lagi dah masuk cron job apa belum pake crontab -l