At 12:15 PM 10/24/97 -0500, David W. Tamkin wrote:
:0bw
| while read url; do case "$url" in; *://*) lynx -dump "$url" | \
$SENDMAIL -oi $LOGNAME ;; ; esac; done
On another note, though, I wonder whether each page has to be mailed
separately:
:0bw
| while read url; do case "$url" in; *://*) lynx -dump "$url" ;; ; \
esac; done | $SENDMAIL -oi $LOGNAME
Hi,
I tried the advice, and I am having a bit of a problem.
Here is the recipe that I came up with:
==================================================================
#Web crawl via email
:0
* ^Subject: xxxxx
{
:0bw
| while read url; do case "$url" in; *://*) lynx\
-traversal -realm -crawl -number_links "$url" | \
$SENDMAIL -oi msaroff(_at_)pca(_dot_)net ;; ; esac; done
}
==================================================================
But I get the following error message when I do this.
==================================================================
procmail: Match on "^Subject: xxxxx"
procmail: Executing " while read url; do case "$url" in; *://*) lynx\
-traversal -realm -crawl -number_links "$url" | \
$SENDMAIL -oi msaroff(_at_)pca(_dot_)net ;; ; esac; done"
/bin/bash: syntax error near unexpected token `;'
/bin/bash: -c: line 1: ` while read url; do case "$url" in; *://*) lynx\'
procmail: Program failure (2) of " while read url; do case "$url" in; *://*)
lynx\
-traversal -realm -crawl -number_links "$url" | \
$SENDMAIL -oi msaroff(_at_)pca(_dot_)net ;; ; esac; done"
procmail: Assigning "LASTFOLDER= while read url; do case "$url" in; *://*) lynx\
-traversal -realm -crawl -number_links "$url" | \
$SENDMAIL -oi msaroff(_at_)pca(_dot_)net ;; ; esac; done"
==================================================================
I know that the "lynx -traversal -realm -crawl -number_links "$url"
works, as I used it from the shell, and it worked just fine, so I am
assuming that there is a subtle problem with the syntax
--
--Matthew Saroff
The following is text from a McDonald's ad that was supressed.
John Wilkes Booth:"Walk in the theater, sweet talk the guard, split the head."
Lee Harvey Oswald: "Through the tree, off the Secret Service Agent, crease
Jackie's hair, into Governor Connolly, split the head."
Michael Jordan:"These guys are good!!"