I need to execute a script locally. The problem is, it needs to use screen and send the ctrl d command.
How would i do this? The script will be on my local windows machine. i can use winscp, putty, mingw and other apps.
|
I need to execute a script locally. The problem is, it needs to use How would i do this? The script will be on my local windows machine. i can use winscp, putty, mingw and other apps. |
||||
|
You can use expect (expect home page, included in most unix software distributions) to script interactions with programs that run in text terminals. However, there's probably a simpler way of doing what you're trying to do. You can send commands to a screen session from any command line, and you can use screen's
If this answer isn't helping you, give more information about what you're trying to do. |
|||
|
|
|
Your arrangement doesn't make any sense to me. Are you asking how to send keys to screen from something outside screen? You might use |
|||
|
|
|
From screen(1) manual
I usually use
Adding new commands on an existing detached screen and detach immediately.
|
|||
|
|
Ctrl-a dfor immediately detaching. – forcefsck Apr 2 '11 at 19:05