On Sun, 9 Jan 2005, Jens Schleusener wrote:
I use within a script the program "lynx" via
lynx -dump -nolist URL
and added now the option
-connect_timeout=15
to shorten the general processing time while connecting to invalid or currently unreachable URLs. That works if I call the script interactively (on the console) but not if the script is called as a cronjob. Instead a "usage"-message is issued where the option "-connect_timeout" is missing.
Why? Any ideas?
The first thing I would check is if I'd set my $PATH to point to the correct version of lynx. Within cron, you only get a default set of
environment variables rather than having your login scripts read.
Since that's generally inconvenient, I use cron with a shell script wrapper that sets up my $PATH
-- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net
_______________________________________________ Lynx-dev mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/lynx-dev
