LYNX Question

LYNX Question

Post by Mario Gl » Fri, 13 Dec 1996 04:00:00



hi there,

is it not possible to have a option on lynx to automatic start lynx
and
save the binarie file automaticly to the disk ?

e.g.

lynx http://www.some.where.edu/compiled/your_dos_prog.exe -autosave

Mario (Germany)

 
 
 

LYNX Question

Post by David Sye » Fri, 13 Dec 1996 04:00:00



> hi there,

> is it not possible to have a option on lynx to automatic start lynx
> and
> save the binarie file automaticly to the disk ?

> e.g.

> lynx http://www.some.where.edu/compiled/your_dos_prog.exe -autosave

Probably not what you want but how about

lynx -source http://www.some.where.edu/compiled/your_dos_prog.exe >
myfile

Dave.

 
 
 

LYNX Question

Post by Steffen A. Jako » Fri, 13 Dec 1996 04:00:00



> is it not possible to have a option on lynx to automatic start lynx
> and
> save the binarie file automaticly to the disk ?

> e.g.

> lynx http://www.some.where.edu/compiled/your_dos_prog.exe -autosave

lynx -source http://www.blubb.org/something_nice > something_nice

Best wishes,
Steffen.
--
Steffen A. Jakob          |"Die Ratten versenken das

+43 1 8176230-18          | (Regina Klotz)
http://www.gams.net/~saj/ |

 
 
 

LYNX Question

Post by Steffen A. Jako » Fri, 13 Dec 1996 04:00:00



> is it not possible to have a option on lynx to automatic start lynx
> and save the binarie file automaticly to the disk ?

> e.g.

> lynx http://www.some.where.edu/compiled/your_dos_prog.exe -autosave

lynx -source http://www.blubb.org/something_nice > something_nice

Best wishes,
Steffen.
--
Steffen A. Jakob          |"Die Ratten versenken das

+43 1 8176230-18          | (Regina Klotz)
http://www.gams.net/~saj/ |

 
 
 

LYNX Question

Post by Ed Doolitt » Fri, 20 Dec 1996 04:00:00



> is it not possible to have a option on lynx to automatic start lynx
> and
> save the binarie file automaticly to the disk ?
> lynx http://www.some.where.edu/compiled/your_dos_prog.exe -autosave

If lynx itself doesn't offer such a feature, it's possible to fake it
using expect.  Write an expect script like this:

#!/usr/local/bin/expect --
log_file -noappend /tmp/log
# could be a long wait
set timeout -1
spawn lynx http://www.some.where.edu/compiled/your_dos_prog.exe
expect "D)ownload or C)ancel"
send "d"
expect "Save to local file"
send "\n"
expect "filename:"
send "\n"
expect "Saved."
send "q"
expect "Really Quit?"
send "y"

Of course, youll have to change the "prompts" in the script to match
what you actually see when you walk through it yourself.

If expect isn't on your system already, you can get it by following the
instructions at the end of this message.

Ed

--

 "Being on time is like being on fire."

--------------------
How to Get the Latest Version of Expect or the Readings
--------------------

Expect may be ftp'd as pub/expect/expect.tar.Z from ftp.cme.nist.gov.

contents of the message should be (no subject line) "send
pub/expect/expect.tar.Z".  (Development versions of Expect may
occasionally be made available as alpha.tar.Z in the same directory.)

The usual way of using Expect is as a standalone program with Tcl as
the control language.  Since you may already have Tcl, it is available
separately.  Tcl may be retrieved as pub/expect/tcl.tar.Z in the same
way as described above for Expect.  When new releases of Tcl appear, I
will try to check them out for Expect as soon as possible.  If you
would like to get the newest Tcl release without waiting, ftp it from
ftp.smli.com (directory pub/tcl).

Expect may also be built using the Tk library, a Tcl interface to the
X Window System.  Tk is available in the same way as Tcl.

 
 
 

1. Lynx question - how to auto-download from a recognized MIME filetype?

I'm trying to automatically download a file from a secure web server,
for later processing.  I figured Lynx would be the way to do this.  I
currently have the URL set and using the correct auth it gets to the
page, but then I get:

application/vnd.ms-excel.csv  D)ownload, or C)ancel

once I choose D, I get

                  Download Options (Lynx Version 2.8.4rel.1)

Downloaded link: https://(weird long link name)
Suggested file name: (bizarro file name that I need to change since
it's coming from a CGI script)

Standard download options:
   Save to disk

Local additions:

How do I go about auto-saving the file as a particular filename?
Thanks!

2. 2.4.18-xfs (xfs related?) oops report

3. lynx question

4. command to show HD freespace?

5. ParcPlace Product

6. xmcd chokes on my Sony CDU-55E CD-ROM

7. lynx works, but lynx -source fails ?!?

8. A question about lynx

9. LYNX -dump question

10. lynx and slrn questions

11. Questions about Lynx Messenger (sorry if off-topic)