TransWikia.com

Run multiple commands on linux at once

Super User Asked on January 16, 2021

I need to screen and node (in the screen session) multiple scripts (each script – 1 screen session)
The thing is each time I have to do it manually, for example:

screen -S screen1
node script1.js
ctrl+a+d (to exit the current screen)
screen -S screen2
node script2.js
ctrl+a+d

and so on….
Is there any way to do it automatically?

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP