Try this thread, it may be what you want.. 

https://stackoverflow.com/questions/8128578/reading-value-from-console-interactively

If you want to get fancy with web based interface, you can do it with 
terminal emulators like https://github.com/Gottox/terminal.js (simple) 
and https://github.com/xtermjs/xterm.js (more complex) along with 
websockets. You can also get fancier with docker instances, but thats 
probably for another day!

On Sunday, 18 March 2018 22:06:58 UTC+5:30, EL HEDADI Youssef wrote:
>
> Hello.
> firstly sorry for my bad english :) .
> can any one help me with this probelem. 
> i want ot create a kind of terminal in linux with nodeJs 
> for exemple use sqlite3 from shell ( i don't want use node s modules like 
> node-sqlite3 or others) and give me the possibilite to re send others 
> command with the same instance.
> --> exemple:
>  1- run--> sqlite3 
> 2- after receive result re-send commande to open DB (.open /db/db.sqlite).
> 3- run query,  for exemple :
>       select * from table A;
>       select * from table B
>
> i already try with child_process but when i used from multiple js file i 
> get multi sqlite3 instance open and cpu up to 80-100%
>

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/cfb3f8d1-2faf-4a64-9507-b271c329e69c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to