in reply to Re: Execute a perl script fpr another Computer
in thread Execute a perl script fpr another Computer
#/usr/bin/perl -w use strict; use CGI; my $q = new CGI; print $q->header(); my $err = do_something(); print $err ? $err : "OK"; sub do_something { for (my $i=0;$i<20;$i++ { print "\7"; } }
#!/usr/bin/perl -w use strict; use LWP::Simple #while (1) { # if ( some_event() ) { my $response = get('http://192.168.0.123/cgi-bin/servert.pl'); warn $response =~ m/OK/ ? "Notified server b OK\n" : "$respons +e\n"; # } sleep 10; #} # check for some event #sub some_event { ... }
Use of uninitialized value in pattern match (m//) at clientt.pl line 1 +0. <br> Use of uninitialized value in concatenation (.) or string at clientt.p +l line 10<br>
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Execute a perl script fpr another Computer
by tachyon (Chancellor) on Jan 02, 2003 at 08:11 UTC | |
by Draff (Acolyte) on Jan 02, 2003 at 10:00 UTC | |
by Draff (Acolyte) on Jan 02, 2003 at 10:02 UTC |