I have a javascript page that I would like to use to run terminal commands and possibly show the output from those commands on that page. Google was very unhelpful as I don't think it could understand what I wanted. Specifically I would like to use the cat command to read a file, I can do this in a .sh file with $(cat /home/file) and I would like to do something similar except with javascript on my page. Ideas?



Adv Reply



Bookmarks