[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lynx-dev lynx, cron and tty

From: Stef Caunter
Subject: Re: lynx-dev lynx, cron and tty
Date: Tue, 10 Feb 2004 21:25:15 -0500 (EST)

With a local test file consisting of a 1000 character line,
lynx will put a "newline" in before $COLUMNS characters.

With -source it does not do this.

lynx -source file | wc
1       1       1001

lynx -dump file | wc
14      13      1014

You could do your https get with lynx -source and then parse
out the result with something else.

See below from the archive for why setting terminal modes
fails in cron.

     * To: address@hidden
     * Subject: Re: lynx-dev Re: Trying to run cmd_script via cron
     * From: Thomas Dickey <address@hidden>
     * Date: Fri, 30 Aug 2002 07:36:58 -0400

> > Running in cron, you don't have
> > a /dev/tty, so things that try to set terminal modes will fail.

On Tue, 10 Feb 2004, Harland Christofferson wrote:

> >> i am still wrestling w/ running lynx from a cron job ...
> >>
> >> stty cols 160 rows 80
> >
> >stty is likely to be less effective than setting environment variables
> i have tried this however w/o success ... this is why i looked into
> piping it through /dev/tty3
> in my cron job bash script, i have tried:
> there has to be something i am overlooking here. the outfile.txt
> has data from the navigation of the website in it. however, it looks
> like the entire web page is piped to the outfile using row and column
> parameters that are much lower than the ones exported. it appears
> that lynx is using parameters for standard output that are  smaller
> than the rows and columns of the webpage. the sizes i have selected
> in the cron job script i know to be sufficient to display an entire
> webpage from this site via lynx. i have seen this when runnin lynx
> in an xterm.
> this is an interesting problem to me.
> ; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

; To UNSUBSCRIBE: Send "unsubscribe lynx-dev" to address@hidden

reply via email to

[Prev in Thread] Current Thread [Next in Thread]