antumin
antumin

Reputation: 167

Shell-Script with multiple screen sessions does nothing

I Have a Problem with the following Shell-Script which should start two screen sessions. When I execute it there is simply nothing happening. Does anybody have a clue why this is the case? My System is the newest raspbian.

#!/bin/sh
screen -Smd server node ./SensorService/bin/app.js
screen -Smd receiver python3 receiver.py

Upvotes: 0

Views: 311

Answers (1)

Soner Gokdogan
Soner Gokdogan

Reputation: 76

You may try putting an ampersand to the end of the second and the third lines to put the jobs in the background.

#!/bin/sh
screen -Smd server node ./SensorService/bin/app.js &
screen -Smd receiver python3 receiver.py &

Upvotes: 2

Related Questions