<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Well I used and still use Ubuntu 10.04 at a lot of packet systems
with the same script and never had a problem<br>
with it.<br>
<br>
I'm mystified..<br>
<br>
73,<br>
<br>
Bob VE3TOK<br>
<br>
<br>
On 10-11-27 07:57 PM, Wm Lewis wrote:
<blockquote cite="mid:SNT125-W313032B82528B800CB759FA9230@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style> Ok.... So I had to turn off the computer for a while and
take a break.<br>
<br>
When I turned the computer back on, my eyes caught something I had
not paid attention too.<br>
<br>
In all the various configuration tweeks, JNOS had *tried* (I
believe in console 5) to run and left me a bread crumb.<br>
<br>
If one is not in the JNOS directory, or doesn't tell a called
script to be in the JNOS directory when trying to run JNOS, JNOS
starts, then not seeing some important directories (because is was
called outside of the JNOS directory), JNOS will create the
missing directories, and attempt to finish booting. Usually with
an error that it could not find the "autoexec.nos" file.<br>
<br>
The directories JNOS will create if it doesn't see them are
*FINGER* *LOGS* *SPOOL* *WWWLOGS* *WWWSTATS*<br>
<br>
So, finally I take note that these directories exists in the root
folder, when they should not.<br>
<br>
What this boils down to is the fact that when I boot, and have any
script called, and that script has this line "cd /jnos", the
script ignores it as an error and *appears* to try to run
jnos, but not being in the jnos directory, that attempt fails.<br>
<br>
So, I would presume that maybe several variations of what I tried
did actually get the tty5 console to flicker on, then off as jnos
failed.<br>
<br>
Now I need to diagnose why the command line "cd /jnos" wont
process when called from the "startnos" file.<br>
<br>
Bob, also a note to you. I tried doing it with "dojnos" and your
file provided (making the changes needed) and got the same
results.<br>
<br>
So..... Anyone know why Ubuntu 10.04 hates to change directories
from a called file?<br>
<br>
Bill<br>
KG6BAJ<br>
<br>
<br>
<br>
<hr id="stopSpelling"> Date: Sat, 27 Nov 2010 14:47:46 -0500<br>
From: <a class="moz-txt-link-abbreviated"
href="mailto:bobtenty@gmail.com">bobtenty@gmail.com</a><br>
To: <a class="moz-txt-link-abbreviated"
href="mailto:nos-bbs@tapr.org">nos-bbs@tapr.org</a><br>
Subject: Re: [nos-bbs] Ubuntu 10.04 autoboot JNOS & respawn<br>
<br>
<meta content="Microsoft SafeHTML" name="Generator">
NO, they don't need su/sudo in them<br>
<br>
<br>
<br>
/etc/init/tty5.conf<br>
<br>
# tty5 - getty<br>
#<br>
# This service maintains a getty on tty5 from the point the system
is<br>
# started until it is shut down again.<br>
<br>
start on runlevel [23]<br>
stop on runlevel [!23]<br>
<br>
respawn<br>
#exec /sbin/getty -8 38400 tty5<br>
exec /srv/home-remote/hamradio/jnos/dojnos<br>
<br>
<br>
-rw-r--r-- 1 root root 258 2009-10-31 15:32 tty5.conf<br>
<br>
(never touched the owner of this file)<br>
<br>
<br>
On 10-11-27 02:16 PM, Wm Lewis wrote:
<blockquote cite="mid:SNT125-w269961C6270F6E7D5B4C1CA9220@phx.gbl">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>Another thought.<br>
<br>
These command appear to work when I manally enter them at a
different console **BECAUSE I'M LOGGED IN AS ROOT**<br>
<br>
During a power up boot, **THE SCRIPTS CALLED ARE NOT ROOT**
Which could be why they fail.<br>
<br>
So, again I'll ask.... do any of theses commands require some
sort of SU or SUDO injection in them?<br>
<br>
Bill<br>
KG6BAJ<br>
<br>
<hr id="ecxstopSpelling"> From: <a moz-do-not-send="true"
class="ecxmoz-txt-link-abbreviated"
href="mailto:thunderft@hotmail.com">thunderft@hotmail.com</a><br>
To: <a moz-do-not-send="true"
class="ecxmoz-txt-link-abbreviated"
href="mailto:nos-bbs@tapr.org">nos-bbs@tapr.org</a><br>
Date: Sat, 27 Nov 2010 10:29:15 -0800<br>
Subject: Re: [nos-bbs] Ubuntu 10.04 autoboot JNOS & respawn<br>
<br>
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>ok, here's the next problem..<br>
<br>
From concole 4, I typed what you said, and console 5 did come to
life.<br>
<br>
The issue was now JNOS could not find the "autoexec.nos" file
because <br>
the "startnos" crashed on the very first command of "cd /jnos"<br>
<br>
So... now what?<br>
<br>
<hr id="ecxstopSpelling"> Date: Sat, 27 Nov 2010 13:17:28 -0500<br>
From: <a moz-do-not-send="true"
class="ecxmoz-txt-link-abbreviated"
href="mailto:bobtenty@gmail.com">bobtenty@gmail.com</a><br>
To: <a moz-do-not-send="true"
class="ecxmoz-txt-link-abbreviated"
href="mailto:nos-bbs@tapr.org">nos-bbs@tapr.org</a><br>
Subject: Re: [nos-bbs] Ubuntu 10.04 autoboot JNOS & respawn<br>
<br>
The error is in "startnos".<br>
<br>
<br>
In your "startnos" file you have:<br>
<br>
<span lang="EN">exec /jnos/jnos -d/jnos -v
</dev/tty5>/dev/tty5 2>&1 <br>
<br>
The error is "jnos -d/jnos -v"<br>
<br>
<br>
You should use:<br>
<br>
<br>
</span><span lang="EN">exec /jnos/jnos -d -v
</dev/tty5>/dev/tty5 2>&1 </span><br>
<br>
-----<br>
<br>
tty5.conf itself is OK<br>
<br>
<br>
<br>
73,<br>
<br>
Bob VE3TOK<br>
<br>
<br>
On 10-11-27 07:01 AM, Wm Lewis wrote:
<blockquote
cite="mid:SNT125-W11F755859E8313E72FFD88A9220@phx.gbl">
<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}
</style>Bob:<br>
<br>
I tried updating as you said. Still no Joy. <br>
<br>
Do I need to be using some sort of SUDO command in any of this
for it to work on boot?<br>
<br>
Here are my updated files. <br>
<br>
"startnos" file (in /jnos directory<br>
==============================================<br>
<span lang="EN">cd /jnos<br>
rm -f /jnos/spool/mqueue/*.lck 2> /dev/null<br>
rm -f /jnos/spool/mail/*.lck 2> /dev/null<br>
export TZ=PST8PDT<br>
exec /jnos/jnos -d/jnos -v </dev/tty5>/dev/tty5
2>&1 <br>
</span>==============================================<br>
<br>
and the "tty5.conf" file<br>
<br>
==============================================<br>
<span lang="EN"># tty5 - getty<br>
#<br>
# This service maintains a getty on tty5 from the point the
system is<br>
# started until it is shut down again.<br>
<br>
start on runlevel [23]<br>
stop on runlevel [!23]<br>
<br>
respawn<br>
exec /jnos/startnos<br>
</span>==============================================<br>
<br>
What am I missing ?<br>
<br>
Bill<br>
KG6BAJ<br>
<hr id="ecxstopSpelling"> Date: Sat, 27 Nov 2010 01:23:29
-0500<br>
From: <a moz-do-not-send="true"
class="ecxmoz-txt-link-abbreviated"
href="mailto:bobtenty@gmail.com">bobtenty@gmail.com</a><br>
To: <a moz-do-not-send="true"
class="ecxmoz-txt-link-abbreviated"
href="mailto:nos-bbs@tapr.org">nos-bbs@tapr.org</a><br>
Subject: Re: [nos-bbs] ubuntu 9.1 compiles OK now, but...<br>
<br>
Bill:<br>
<br>
To start it in virtual tty5 add </dev/tty5>/dev/tty5
2>&1 to the "exec"<br>
line in your startnos file.<br>
<br>
like:<br>
<br>
exec ./jnos -g2 -w7+4 -d </dev/tty5>/dev/tty5
2>&1 <br>
<br>
<br>
export TERM=linux is not necessary<br>
<br>
<br>
Don't use tty5 (or whatever console not in use) to your
tty5.conf file if you use <br>
</dev/tty5>/dev/tty5 2>&1 , etc in your startnos
file.<br>
<br>
<br>
<br>
<br>
You can stop and start tty5 with the commands:<br>
<br>
initctl stop tty5<br>
initctl start tty5<br>
<br>
<br>
<br>
73,<br>
<br>
Bob VE3TOK<br>
<br>
<pre><fieldset class="ecxmimeAttachmentHeader"></fieldset>
_______________________________________________
nos-bbs mailing list
<a moz-do-not-send="true" class="ecxmoz-txt-link-abbreviated" href="mailto:nos-bbs@tapr.org">nos-bbs@tapr.org</a>
<a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="https://www.tapr.org/cgi-bin/mailman/listinfo/nos-bbs" target="_blank">https://www.tapr.org/cgi-bin/mailman/listinfo/nos-bbs</a>
</pre>
</blockquote>
<br>
<br>
_______________________________________________ nos-bbs mailing
list <a moz-do-not-send="true"
class="ecxmoz-txt-link-abbreviated"
href="mailto:nos-bbs@tapr.org">nos-bbs@tapr.org</a> <a
moz-do-not-send="true" class="ecxmoz-txt-link-freetext"
href="https://www.tapr.org/cgi-bin/mailman/listinfo/nos-bbs"
target="_blank">https://www.tapr.org/cgi-bin/mailman/listinfo/nos-bbs</a>
<br>
_______________________________________________ nos-bbs mailing
list <a moz-do-not-send="true"
class="ecxmoz-txt-link-abbreviated"
href="mailto:nos-bbs@tapr.org">nos-bbs@tapr.org</a> <a
moz-do-not-send="true" class="ecxmoz-txt-link-freetext"
href="https://www.tapr.org/cgi-bin/mailman/listinfo/nos-bbs"
target="_blank">https://www.tapr.org/cgi-bin/mailman/listinfo/nos-bbs</a>
<pre><fieldset class="ecxmimeAttachmentHeader"></fieldset>
_______________________________________________
nos-bbs mailing list
<a moz-do-not-send="true" class="ecxmoz-txt-link-abbreviated" href="mailto:nos-bbs@tapr.org">nos-bbs@tapr.org</a>
<a moz-do-not-send="true" class="ecxmoz-txt-link-freetext" href="https://www.tapr.org/cgi-bin/mailman/listinfo/nos-bbs" target="_blank">https://www.tapr.org/cgi-bin/mailman/listinfo/nos-bbs</a>
</pre>
</blockquote>
<br>
<br>
_______________________________________________ nos-bbs mailing
list <a class="moz-txt-link-abbreviated"
href="mailto:nos-bbs@tapr.org">nos-bbs@tapr.org</a> <a
class="moz-txt-link-freetext"
href="https://www.tapr.org/cgi-bin/mailman/listinfo/nos-bbs">https://www.tapr.org/cgi-bin/mailman/listinfo/nos-bbs</a>
<pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
nos-bbs mailing list
<a class="moz-txt-link-abbreviated" href="mailto:nos-bbs@tapr.org">nos-bbs@tapr.org</a>
<a class="moz-txt-link-freetext" href="https://www.tapr.org/cgi-bin/mailman/listinfo/nos-bbs">https://www.tapr.org/cgi-bin/mailman/listinfo/nos-bbs</a>
</pre>
</blockquote>
<br>
</body>
</html>