Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Need bat-script to feed lynx with URL-list

18 views
Skip to first unread message

no.to...@gmail.com

unread,
Jan 30, 2011, 8:40:06 AM1/30/11
to
I've been doing this sucessfully for years under linux.
Now I had to buy a Win7-netbook to drive my wireless modem, and I've confirmed
that it can run lynx-W32.

Here's the pseudo-code for what the *.bat should do:

REPEAT
read next line of file: URLlist into NextURL
echo NextURL >> AccumulatingFile
lynx -dump NextURL >> AccumulatingFile
echo "<><><><><><><><>" >> AccumulatingFile
UNTIL lastLine read

Please write-me the DOS FeedLynx.bat

==TIA.

PS. here's my linux Script, where $1 = URLlist; $2 = AccumulatingFile:

#!/bin/bash
for url in `cat "$1"`; do
echo $url >> "$2";
lynx -dump "$url" >> "$2";
echo "<><><><><>" >> "$2"; done
==========================

Out of environment space: error

I had to buy a Win-Netbook to run my wireless-modem.
It's OS is Win7-starter, which seems very different to W98, which I used to
use.

What I want to be able to do, is d/l a sequence of http, from a file listing
their URLs, and just save/append the d/l-s to a file.

I do this under linux using lynx.
And I've used lynx under DOS, decades ago.

So I d/l-ed lynx for W32 and copied it to my \Users\ directory.
And I modified the *.bat for the appropriate <paths>.

Previously I had copied my old Norton Commander [nc] for DOS, also
to my \Users\ directory and I've been using it. Also I d/l-ed
<Win32Forth> and used it somewhat; so I expected the <lynx for W32>
to also be usable.

But I get an "Out of environment space" error.
The *.bat starter sets about 3 or 4 'variables'.
Oh yes, I did NOT copy the lynx-package/dir-tree to C: yet.
I left it on the USBstik [as G:*].
And I don't see why I can't run it from the USBstik -- initially?
Nor how that would cause an "Out of environment space" error.

There's some confusion, since I run the Win32Forth and [DOS]:nc from the
'Command Prompt" where eg. file & directory names are show in the 8+3
character format of DOS.

Can someone please give me some ideas on how to debug my error.

== TIA.

PS. I unzippd the dir-tree into my W98 partition and set the paths in the
*.bat and ran the *.bat in the 'dos-box' and lynx is GOOD !

0 new messages