<div id="geary-body" dir="auto"><div>Hi Jay,</div><div><span style="white-space: break-spaces">     Yes there is a shabang.</span></div><div><span style="white-space: break-spaces">Here's the script I'm trying to run. Works fine from command line... just not from a log trigger or shelling from JNOS. </span></div><div><span style="white-space-collapse: break-spaces;"><a href="https://github.com/gm1ymi/JNOS_scripts/blob/main/last10mins.sh">https://github.com/gm1ymi/JNOS_scripts/blob/main/last10mins.sh</a></span></div><div><span style="white-space-collapse: break-spaces;"><br></span></div><div><span style="white-space-collapse: break-spaces;">Andrew - K1YMI</span></div></div><div id="geary-quote" dir="auto"><br>On Sun, Mar 9 2025 at 02:58:28 PM -04:00:00, Jay <jjn@nuge.com> wrote:<br><blockquote type="cite"><div class="plaintext" style="white-space: break-spaces;">Greets!

   Is there a shabang statement at the very beginning of the shell script defining what Shell the script should be run as?

      --- Jay WB8TKL


On Sun, 9 Mar 2025, Andrew wrote:

<blockquote>Based on the information here <a href="http://lists.tapr.org/pipermail/nos-bbs_lists.tapr.org/2020-April/005535.html">http://lists.tapr.org/pipermail/nos-bbs_lists.tapr.org/2020-April/005535.html</a>

I am trying to fire off a shell script on a log trigger event, but the script does not seem to execute.
I believe permissions are correct and it's executable. It also runs fine when ran manually from command line under the same user
as JNOS.
Even if I try and run a 'shell ./shell_script.sh from the JNOS admin console it does not seem to execute.
Is there a specific directory shell scripts should be in?

Andrew - K1YMI

</blockquote></div><div class="plaintext" style="white-space: break-spaces;">_______________________________________________
nos-bbs mailing list
<a href="mailto:nos-bbs@lists.tapr.org">nos-bbs@lists.tapr.org</a>
<a href="http://lists.tapr.org/mailman/listinfo/nos-bbs_lists.tapr.org">http://lists.tapr.org/mailman/listinfo/nos-bbs_lists.tapr.org</a>
</div><div class="plaintext" style="white-space: break-spaces;">_______________________________________________
nos-bbs mailing list
<a href="mailto:nos-bbs@lists.tapr.org">nos-bbs@lists.tapr.org</a>
<a href="http://lists.tapr.org/mailman/listinfo/nos-bbs_lists.tapr.org">http://lists.tapr.org/mailman/listinfo/nos-bbs_lists.tapr.org</a>
</div></blockquote></div>