LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

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


hi,
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.

thanks

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

Rep: Reputation: 0
Hi,

from: man lynx

...
-cookie_file=FILENAME
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.

-cookie_save_file=FILENAME
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.
 
  


Reply


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 03:45 PM
Extracting terminal/console information Woodsman Slackware 6 11-12-2005 01:34 PM
Terminal Information Files or directory ankush174 Red Hat 1 07-02-2004 03:40 PM
problem in recieving information from a terminal device (globe trotter gprs card) dinesh_2001 Linux - General 1 02-13-2004 11:32 AM
problem in recieving information from a terminal device dinesh_2001 Linux - Networking 0 02-13-2004 10:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:30 AM.

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