<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Gosh, I should know this stuff, but I got deep into it and so far no solution, so let me ask if others have soled this problem already.<div class=""><br class=""></div><div class="">I want to automatically launch JNOS after a power failure.</div><div class=""><br class=""></div><div class="">At the moment I do this by going to the computer and bringing up <b class="">Terminal</b> and then launching JNOS in that session and I just leave it open. Works great until the power fails. If I am away or out of town, JNOS won't run again until I notice the failure and fire up the display and keyboard. (I do have an automated cron that notices the failure and emails me, but it can be several hours before I notice, and as I said, I may be out of town.)</div><div class=""><br class=""></div><div class="">So from crontab preferably I would like to launch JNOS and let it run indefinitely. But also I'd like to do it from Python because that's what I'm using as my base for writing additional JNOS support.</div><div class=""><br class=""></div><div class="">I know how to detect whether it is running already and all of that and then try to launch it if not already running, what I can't get is how to launch JNOS without Terminal. Meaning there is no 'environment' for it to run in. If I do that, it launches but immediately just exits. Nothing in syslog that I can find to help me know. I presume I have to have cron launch JNOS with some kind of environment specified, but so far I can't figure that out.</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><u class="">If someone has already solved this, I would prefer to know your solution, not necessarily to debug mine.</u></div><div class=""><br class=""></div><div class="">I'm not going to put the code here because you will be tempted to try to debug it. Just suffice it to say it does launch the process, gets a PID in return, but that process will exit without actually completing the JNOS launch. And I presume this is because JNOS needs an 'environment' to run in and cannot run by itself.</div><div class=""><br class=""></div><div class="">—Sky</div><br class=""><br class=""><div class="">
<div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div dir="auto" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class=""><div style="font-family: Helvetica;" class="">- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</div><div style="font-family: Helvetica;" class="">"Sky" (Jim Schuyler)</div><div style="font-family: Helvetica;" class=""><span style="text-align: -webkit-auto;" class="">—</span>Amateur Radio AA6AX</div><div style="font-family: Helvetica;" class=""><div style="font-family: Arial;" class="">Online at <a href="https://aa6ax.us/" class="">aa6ax.us</a><span style="font-family: Helvetica; text-align: -webkit-auto;" class=""> </span></div></div></div><div class=""><br class=""></div></div></span></div></span></div></div></div></div></div></div></div></div></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div><br class=""></body></html>