How to access a webpage from linux shell
I just learned this. To access a webpage from a linux shell use
lynx -dump 'http://some.url.org/index.html'
For example, to find the time stamps for a given run at STAR, use
lynx -dump 'http://online.star.bnl.gov/RunLogRun12/index.php?r=13025001' | grep GMT
Want to know if the run is on HSPP? This will return "Yes" if it is
lynx -dump 'http://online.star.bnl.gov/RunLogRun12/index.php?r=13025001' | grep st_physics_13025001 | awk '{print $NF; exit;}'
Neat, huh?
Groups:
- sgliske's blog
- Login or register to post comments