Will Emacs --batch run in cron will hang when require user input?

Posted by J Spen on Stack Overflow See other posts from Stack Overflow or by J Spen
Published on 2012-07-05T10:11:50Z Indexed on 2012/07/06 9:16 UTC
Read the original article Hit count: 174

Filed under:
|
|
|
|

I have a job in crontab that requires emacs --batch but if the file is currently open it requests (s, p, q) to (steal, quit, etc...) which is fine if this file is being edited to not run the script but I want to make sure it kills the cron running script so it's not sitting in the background taking up memory. I have the output set to go to a log file so I can see this happening but no way to tell whether the script was terminated even though asked for user input.

Does cron terminate these scripts and how to check the PID to make sure?

© Stack Overflow or respective owner

Related posts about linux

Related posts about ubuntu