Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-13-2003, 10:30 AM   #1
Registered: Jan 2003
Location: S.E. England
Distribution: Redhat 8.0
Posts: 64

Rep: Reputation: 15
getting information from a webpage in terminal

i used the lynx -dump command in a script i wrote to get weather reports for my area, and i would now like to do the same but to check other things, like PM's on different messageboards etc. However lynx only stores cookies for one session. Does anyone know of if there is a program like lynx that is will store the cookies so that i can use a script to get information from that site?
i was thinking this would probably be possible in perl but i dont know perl.
the only way i could think of was to use lynx, but run it with the script option and get it to enter my username password on the site each time, but this would take quite a while for it to get the information. also im sure there must be a better way, but being a newbie i dont know how else to do it.


Old 01-31-2003, 05:58 AM   #2
LQ Newbie
Registered: Jan 2003
Distribution: Gentoo
Posts: 8

Rep: Reputation: 0

from: man lynx

specifies a file to use to read cookies. If none is specified,
the default value is ~/.lynx_cookies for most systems, but
~/cookies for MS-DOS.

specifies a file to use to store cookies. If none is specified,
the value given by -cookie_file is used.


Use them in opposite order to first get your cookie (and move the file somewhere safe). Later use the --cookie_file=/some/path/cookie to make sure you have the cookies avail.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Switching back to the Mandrake 9.1 desktop from terminal rdesktop terminal session marc218 Linux - General 6 02-08-2007 02:45 PM
Extracting terminal/console information Woodsman Slackware 6 11-12-2005 12:34 PM
Terminal Information Files or directory ankush174 Red Hat 1 07-02-2004 02:40 PM
problem in recieving information from a terminal device (globe trotter gprs card) dinesh_2001 Linux - General 1 02-13-2004 10:32 AM
problem in recieving information from a terminal device dinesh_2001 Linux - Networking 0 02-13-2004 09:36 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:06 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration