I am trying to run the following command (lxterm is alias to lxterminal)
lxterm -e "node test.js"
its OK, but when test terminates the new terminal closes instantly. Cant I make it stay until I close it?
Another question : can I do that in xterm? I was typing
xterm >&1 node
and a new xterm with > opens but I can`t pass the .js files to node...
Add a comment
|
1 Answer
Ive found what I needed. Its not exactly an answer to my question but it works for my desires:
xterm -e "node somefile.js | gvim - "
which actually opens the node interpret into gvim buffer, which is way better since I can save the output for benchmarks if needed.