<div dir="ltr"><div>Thank you Olaf, :-)</div><div><br></div>I am developing a php interface I'm calling it php saneng I have it on bitbucket for now and using proc_open. I will send the signal via proc_terminate giving it the second option being the signal I want to use. I had a similar project I got working in the past specifically for my scanner and I seem to recall I was giving it signal SIGTERM and I think that was causing issues where as when I would test from the command line and use ctrl+c it would leave the scanner in a usable state. So now that I read about what ctrl+c sends (SIGINT) I think it would be better to send that. Maybe there is something wrong with brothers backend that it prefers a SIGINT over a SIGTERM. I'll experiment and let you know once I get my project a little farther along. My similar project I had got working was destroyed when an upgrade failed and I forgot to back it up. No biggy I should have a better working one in a few weeks.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 29, 2017 at 3:51 AM, Olaf Meeuwissen <span dir="ltr"><<a href="mailto:paddy-hack@member.fsf.org" target="_blank">paddy-hack@member.fsf.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jeff,<br>
<span class=""><br>
Jeff Sadowski writes:<br>
<br>
>>> On Thu, Sep 28, 2017 at 10:30 AM, Jeff Sadowski <<a href="mailto:jeff.sadowski@gmail.com">jeff.sadowski@gmail.com</a>><br>
>>> wrote:<br>
>>> > Is there a good way to stop scanimage?<br>
<br>
</span><span class="">> Ooooh Ctrl-C sends the INT(-2) signal that is the signal I think I want.<br>
<br>
</span>You've already found out how to solve your issue but here are the<br>
details.<br>
<br>
Sending a *single* SIGINT or SIGTERM (and if supported by your system at<br>
compile time SIGHUP or SIGPIPE) will cancel the scan in progress.  This<br>
should leave your scanner in a usable state.<br>
<br>
Sending one of these signals again will abort the scan in progress (and<br>
may leave your scanner in an unusable state).<br>
<br>
You can send signals with the kill command or via the keyboard.  The<br>
latter is somewhat key binding dependent but usually Ctrl-C will do the<br>
Right Thing.<br>
<br>
Hope this helps,<br>
--<br>
Olaf Meeuwissen, LPIC-2            FSF Associate Member since 2004-01-27<br>
 GnuPG key: F84A2DD9/B3C0 2F47 EA19 64F4 9F13  F43E B8A4 A88A F84A 2DD9<br>
 Support Free Software                        <a href="https://my.fsf.org/donate" rel="noreferrer" target="_blank">https://my.fsf.org/donate</a><br>
 Join the Free Software Foundation              <a href="https://my.fsf.org/join" rel="noreferrer" target="_blank">https://my.fsf.org/join</a><br>
</blockquote></div><br></div>