On Mon, 26 Aug 2024 15:33:45 +0000 "Laurent Bercot" <[email protected]> wrote:
> > >$ long_running_command > >... > >... > >Hell, this is lasting too long, I'll take a walk. > >Ring ring, the phone notifies > >$ > > $ long_running_command > ... This is taking too long. > ^Z > $ fg ; send_notification "$?" > > Job control is a wonderful thing. ;-) > > -- > Laurent > Thank you Laurent, That's exactly what I needed! Job control is a wonderful thing indeed. Wrote a function "fga": https://github.com/harkaitz/sh-alert-scripts/blob/master/etc/profile.d/fga.sh The sad part is that I can't do that with Busybox for Windows, at least I don't know how, no CTRL-Z available. At my work a modified version of Busybox for Windows is used heavily for CI (Gitlab+Windows+Busybox), I like to test the scripts beforehand and usually they last long. Harkaitz _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
