1
rated 0 times
[
1]
[
0]
/ answers: 1 / hits: 1550
/ 1 Year ago, sun, april 23, 2023, 8:15:33
I have successfully run command
screen -S Run -X stuff 'stop'`echo -ne '015'`
in the terminal and had screen Run receive the stop command and then receive the simulated enter press. This results in the program running in that screen terminating. However when I try to make a script which looks like this
#!/bin/sh
screen -S Run -X stuff 'stop'`echo -ne '015'`
the screen revives the text
-X: stuff: invalid option stop-ne
I would like to know what is wrong with my script and how to correct it so screen Run receives the stop command and then receives an enter press
More From » scripts