On Dec 20 2013 4:01 PM, andy pugh wrote: > On 20 December 2013 22:53, Charles Steinkuehler > <[email protected]>wrote: > > >> It looks like the root problem is you're treating "user abort" the >> same >> as "successful conversion", > > > Yes, because originally the behaviour was the same. (i.e., it just > stops). > My main problem is that I don't know how to act on a return value in > a bash > script. > No doubt the internet will tell me. > However, first, I was hoping for some discussion n whether I ought to > be > auto-calling it in the LinuxCNC startup script? > (Having tried it, it does feel "right")
taking a quick poke at the net, I find the following documentation: http://tldp.org/LDP/abs/html/exit-status.html So, it looks like from within a bash script you can use a variant of the variable "$?" (try "echo $?") to look at the last command's exit value. I have used some fancy stuff in Python (using SCOOP, DEAP, and pipes) to pass around info across a distributed processing an control system. Hope that helps, EBo -- ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
