davidchambers
davidchambers

Reputation: 24856

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.)

Upvotes: 7

Views: 823

Answers (2)

Anirudh Ramanathan
Anirudh Ramanathan

Reputation: 46778

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.

Upvotes: 4

Cobra_Fast
Cobra_Fast

Reputation: 16101

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.

Upvotes: 10

Related Questions