Can I send some text to the STDIN of an active process running in a screen session?
Posted
by
Richard Gaywood
on Server Fault
See other posts from Server Fault
or by Richard Gaywood
Published on 2010-09-06T11:42:49Z
Indexed on
2013/10/19
3:58 UTC
Read the original article
Hit count: 436
I have a long-running server process inside a screen session on my Linux server. It's a bit unstable (and sadly not my software so I can't fix that!), so I want to script a nightly restart of the process to help stability. The only way to make it do a graceful shutdown is to go to the screen process, switch to the window it's running in, and enter the string "stop" on its control console.
Are there any smart redirection contortions I can do to make a cronjob send that stop command at a fixed time every day?
© Server Fault or respective owner