On Mon, 2002-12-09 at 21:03, Anthony E. Greene wrote:
> I don't think you can use lynx from cron; it needs a controlling terminal.

I have a Perl script that I run from cron. It's not pretty (I know
almost nothing about Perl); it just works.

It's something like this:

#!/usr/bin/perl -w
use strict;

my $url = 'http://www.somesite.com/index.html';

# access the url with lynx, redirecting STDOUT to ELFILO
# one can use either -source or -dump; see man lynx
open ELFILO, "lynx -accept_all_cookies -source '$url' |" ;

while (my $line = <ELFILO>) {
        do something with $line using regular expressions and print whatever output I 
need
}


-- 
Saul Arias - [EMAIL PROTECTED]



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to