How can I send the signals of CTRL-A and CTRL-D from a shell script to a screen?
Next code doesnt work to me. Screen process still is running in foreground and I want that it executes in background. Any idea?
#!/bin/sh
#TweetBot notifications with Growl
cd ~/node-tweetbot/
screen -S "tweet" node app.js -X stuff "'^A' '^D'"
You could simply start up
screenin detached mode. From the man page:So this:
Would start up your screen session detached. You could attach to it at a later time by running: