I have a server with several screens running, each with their own node server listing to different ports. I'd like to create Jenkins jobs to ssh into the box, reattach a specific screen, stop the process, pull from git, restart the app, and detach the screen. Can you 'stuff' a Ctrl+C into a screen? Thinking something along the lines of:
ssh myuser@myserver "screen -S 1234.myscreen -X stuff '[[Ctrl+C]] && git pull origin master && npm install && node app' [[Detach screen]]"