Tip #666 Scripting Lynx for automated web actions
If you have a series of actions that you perform with the command line web browser lynx, it is possible to record these and then run them all again later. This can be used to record downloading a file, logging in and checking details or pretty much anything else you can do in lynx.To record your session do the following:
$ lynx -cmd_log logfilename
This will stop recording when you quit lynx. And then to play back those actions:
lynx -accept_all_cookies -cmd_script=/path/to/logfilename
- TAGS:
- lynx
alias aptitude at awk bash bc cal cat cd colrm comm cp csh curl cut date dd df dialog diff dirname dpkg du fc find fuser grep gs gzip history iconv kill ksh last less ln ls lsof lynx m4 md5sum mkdir mkfifo mkisofs mv mysql nc netstat openssl OSX perl ping popd ps pushd python read redirection rm scp screen sed sort ssh stat sudo svn tail tar tee test top tr uniq vim wc wget xargs