Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does any web browser allow writing to stdout?

I plan to write a Hashify command line client, and I'd like to confirm that simply writing to stdout is not an option before getting creative.

(Ideally the command will behave like TextMate's mate, in this case opening hashify.me in a browser and waiting to be fed input.)

like image 412
davidchambers Avatar asked Jun 03 '11 06:06

davidchambers


2 Answers

WGet (simple http fetching tool) supports redirecting a file to STDOUT with the -qO - option
called like wget -qO - http://url/.

Lynx (full CLI browser) supports dumping to STDOUT with the -dump or -crawl option.

like image 168
Cobra_Fast Avatar answered Sep 22 '22 17:09

Cobra_Fast


You could have a look at Google Native Client, available in the dev channel version of Google Chrome.

When run with the native client flags, it allows you to print to the terminal as stated here. Look into the documentation here and here for details.

Getting it to work on windows could be a pain, but it (supposedly) works great on linux. I'm trying it out right now.

like image 39
Anirudh Ramanathan Avatar answered Sep 22 '22 17:09

Anirudh Ramanathan