On Mon, 23 May 2005, Josef Lowder wrote: > > Anyone know how I could execute 'lynx {url.address]' in a shell script > and capture the output to a file as a background task? I use this scriptlet all the time, to 'snapshot' web content to stdout (as into a pipe to mail it to myself) If it is used as in a cron task which does not have a controlling tty, add a line toward the top: export TERM="xterm" - Russ Herrold [herrold@dhcp11 ~]$ cat `which lynxdump` #!/bin/sh # # /usr/local/bin/lynxdump # # Dump a webpage at $1, and locale to std out # [ -z $1 ] && { echo "Usage: $0 URL" exit 1 } # ( echo -n "HTML dump on " ; echo -n ; date ; \ echo -n " " ; echo "$1" ; echo ; \ lynx -dump "$1" ) # --------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change you mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss