Originally Posted by
Peepsalot
I have an idea for a script which would generate some html based on results of a grep command. I would like to be able to view these results directly in firefox, preferably without writing a file to disk first. Is there any way to pipe input to firefox like that?
Sorry, I could not find any flag to pass to fx to manage this. However, this will work
Code:
tmpfilename="/tmp/tmp.html";#should be absolute path
htmlstring="<html><strong>Your html here..</strong></html>"
echo $htmlstring >$tmpfilename;
firefox "file://$tmpfilename";rm $tmpfilename #removes tempfile after use
Bookmarks