<!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">
You shouldn't remove '2>&1' as it is needed to make it work<br>
<br>
I use it too.<br>
<br>
<br>
By the way, I find the /jnos after the '-d' parameter confusing<br>
<br>
Below would also work..<br>
<br>
<br>
"exec /jnos/jnos -a 40 -d </dev/tty4> /dev/tty4 2>&1"<br>
<br>
<br>
73,<br>
<br>
Bob VE3TOK<br>
<br>
<br>
On 11-02-04 11:50 PM, Wm Lewis wrote:
<blockquote cite="mid:SNT125-W4CCEB6536571269FD1173A9E90@phx.gbl"
type="cite">
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style> Well, I did figure out one thing.... <br>
<br>
My inital post that JNOS was not automatically starting using this
line:<br>
"exec /jnos/jnos -a 40 -d/jnos </dev/tty4> /dev/tty4
2>&1" was, in fact, correct.<br>
<br>
Before this issue, when JNOS did auto-run, I did use that command.<br>
<br>
After the issue arose, I had to modify the line and drop the last
part of "...... 2>&1" so that the line now reads:<br>
"exec /jnos/jnos -a 40 -d/jnos </dev/tty4> /dev/tty4"<br>
<br>
I forgot to post that the yesterday when I discovered that JNOS
now runs with just a blinking cursor.<br>
<br>
If I manually enter the line as "exec /jnos/jnos -a 40 -d/jnos
</dev/tty4> /dev/tty4 2>&1" at a command promt,
leaving the "2>&1" part in, linux responds with an
"ambiguous redirect" error. That gave the clue to remove the
"..2>&1" portion, thus getting JNOS to finally run on
computer startup/boot.<br>
<br>
I should re-state that JNOS was not starting until I removed the
last part.<br>
<br>
As for the "-a 40" part you asked about, that tells JNOS to allow
no more than 40 axip/udp links.<br>
<br>
So, as it is, JNOS starts. It just doesn't reveal that when I
toggle to console 4. <br>
<br>
Booting with different kernals has no change.<br>
<br>
In the words of Leonard Nimoy, I am still "In search of" ....<br>
<br>
Bill<br>
KG6BAJ<br>
<br>
<br>
<br>
<br>
<br>
<br>
> Date: Fri, 4 Feb 2011 22:33:43 -0500<br>
> From: <a class="moz-txt-link-abbreviated"
href="mailto:k8rra@ameritech.net">k8rra@ameritech.net</a><br>
> To: <a class="moz-txt-link-abbreviated"
href="mailto:thunderft@hotmail.com">thunderft@hotmail.com</a><br>
> Subject: Re: My interest is now piqued<br>
> <br>
> OOPS Bill -- sorry I did not remember you spread out the
stuff in your <br>
> reflector posts...<br>
> <br>
> <br>
> On 02/04/2011 06:41 PM, Wm Lewis wrote:<br>
> > Skip:<br>
> ><br>
> > JNOS is being started automatically on computer
bootup/restart.<br>
> FYI:<br>
> "crw--w---- 1 root tty 4, 4 2011-01-31 00:34 /dev/tty4"<br>
> <br>
> c -> is a "character by character" I/O device<br>
> root -> root user owns the the device<br>
> tty -> is the group of users with special privileged
access to the<br>
> device<br>
> rw- -> is the basic "read" and "write" and "execute"
privilege set<br>
> rw--w---- -> the set is repeated three times for root,
tty, and all<br>
> other users<br>
> 4, 4 -> is the programming linkage from the kernel to the
outside world<br>
> 2011-01-31 00:34 -> is the time stamp for the last time it
was modified<br>
> /dev/tty4 -> is the name of the device we all use [it's
like "COM4"<br>
> in the DOS world].<br>
> <br>
> Does that help?<br>
> <br>
> ><br>
> > Jnos is loaded into TTY4/Console 4.<br>
> Yup -- I got that part.<br>
> Given the /var/log messages output, I'm surprised to see the
"ps" return <br>
> jnos as running.<br>
> From your earlier post the following:<br>
> <br>
> Jan 30 19:07:25 linux init: tty4 main process ended,
respawning<br>
> Jan 30 19:07:25 linux init: tty4 main process (21226)
terminated<br>
> with status 2<br>
> Jan 30 19:07:25 linux init: tty4 main process ended,
respawning<br>
> Jan 30 19:07:25 linux init: tty4 main process (21229)
terminated<br>
> with status 2<br>
> Jan 30 19:07:25 linux init: tty4 main process ended,
respawning<br>
> <br>
> is telling you that the<br>
> <br>
> ========================================================<br>
> rm -f /jnos/spool/mqueue/*.lck 2> /dev/null<br>
> rm -f /jnos/spool/mail/*.lck 2> /dev/null<br>
> exec /jnos/jnos -a 40 -d/jnos </dev/tty4> /dev/tty4
2>&1<br>
> ========================================================<br>
> <br>
> Script is failing and then restarting.<br>
> Notice the short time span for all the respawn cycles? -- its
the <br>
> script itself.<br>
> Jnos is never really getting started until the last try [when
the kernel <br>
> sorta "gives up trying"]<br>
> The last try is done without fully attaching the sysop
console to tty4 <br>
> [that's why the cursor only]<br>
> <br>
> ><br>
> > See my previous posts for the method used. (I don't want
to repost it <br>
> > all over, again)<br>
> I'm not comfortable with the:<br>
> <br>
> "exec /jnos/jnos -a 40 -d/jnos </dev/tty4> /dev/tty4
2>&1"<br>
> <br>
> <br>
> line in the init script.<br>
> <br>
> -a 40 -- is a parm I don't recognize<br>
> -d/jnos -- specifies the execution working directory<br>
> </dev/tty4> -- specifies tty4 is used for both input
& output<br>
> /dev/tty4 -- HHMMM I wonder why the repeated ref to tty4<br>
> 2>&1 -- put the error message stream together on the<br>
> standard output stream.<br>
> <br>
> But I can't tell you what a better syntax would be.<br>
> Maybe "</dev/tty4> /dev/tty4" should be "</dev/tty4
>/dev/tty4"?<br>
> I suggest you do some google research to get more opinions.<br>
> WB8RCR has some good material for this purpose.<br>
> <br>
> ><br>
> > Yes, the only issue is that JNOS used to be *visible*
when I toggled <br>
> > over to console 4.<br>
> > Yes, I would like it to be visible again.<br>
> ><br>
> > Right now, when I toggle over to console 4, it only
shows a blinking <br>
> > cursor line.<br>
> Yes -- jnos is not hooking up properly to /dev/tty4 device.<br>
> <br>
> ><br>
> > Bill<br>
> Good luck with the "init tty" approach to starting jnos.<br>
> I'm delighted with the "service" approach including screen --
if you <br>
> want to switch to this method I'd be happy to send you the
scripts I use <br>
> as a go-by.<br>
> <br>
> 73<br>
> Skip<br>
<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>