OpenBCM V1.13 (Linux)

Packet Radio Mailbox

DB0FHN

[JN59NK Nuernberg]

 Login: GUEST





  
ZL3AI  > APRDIG   08.02.03 10:46l 294 Lines 9985 Bytes #999 (0) @ WW
BID : 868-ZL3AI
Read: GUEST
Subj: TAPR Digest, Feb 05, 2/5
Path: DB0FHN<DB0RGB<OK0PPL<RZ6HXA<SP7MGD<IK6PYS<ON0AR<ZL2BAU<ZL3VML
Sent: 030207/1006Z @:ZL3VML.#80.NZL.OC #:58988 [Chch-NZ] FBB7.00i $:868-ZL3AI
From: ZL3AI@ZL3VML.#80.NZL.OC
To  : APRDIG@WW

Subject: Re: xsatir pid autostart
From: Steve Dimse <k4hg@tapr.org>
Date: Wed,  5 Feb 2003 10:01:26 -0500
X-Message-Number: 9

On 2/6/03 at 12:59 AM andrew.rich@bigpond.com (Andrew Rich) sent:

>does not work, "can't open display"

You are probably running it from a window where the display variable is not
set. Run it manually by in a terminal window (you do have Xwindows running,
right?) and see if that works.

Steve K4HG

----------------------------------------------------------------------

Subject: Re: xsatir pid autostart
From: Steve Dimse <k4hg@tapr.org>
Date: Wed,  5 Feb 2003 10:05:47 -0500
X-Message-Number: 10

On 2/6/03 at 12:59 AM andrew.rich@bigpond.com (Andrew Rich) sent:

>#!/bin/bash
>t=`pidof xastir`       # Find pid (process id) of $process.
>
>if [ -z "$t" ]           # If process not present, 'pidof' returns null.
>then
>`DISPLAY=192.168.0.2:0.0`
>`export DISPLAY`
>`/usr/local/bin/xastir `
>fi
>exit 0

Should have looked closer at your actual code before I opened my yap. I don't
use bash, but I'm guessing that each command within a `` pair is forked as a
separate process, so the display variable is not set in the process that
launches xastir. Try:

`DISPLAY=192.168.0.2:0.0; export DISPLAY; /usr/local/bin/xastir `

Again, not vouching for the actual syntax of bash...

Steve K4HG

----------------------------------------------------------------------

Subject: Re: PERL PID
From: "Gregg G. Wonderly" <gregg@skymaster.cytetech.com>
Date: Wed, 05 Feb 2003 09:31:23 -0600
X-Message-Number: 11

>I am trying to test for the presence of a PID for a program.
>
>If it is nit running, then start it 
>
>How would I do this ?

#!/bin/bash
pid=`ps -axwww | grep xastir | grep -v grep | awk '{print $1}'`
if [ "$pid" != "" ]; then
	exit
fi
....start it here...

-----
gregg@cytetech.com  (Cyte Technologies Inc)



----------------------------------------------------------------------

Subject: Re: [ Steve Dimse ] Re: xsatir pid autostart
From: "Gregg G. Wonderly" <gregg@skymaster.cytetech.com>
Date: Wed, 05 Feb 2003 09:35:51 -0600
X-Message-Number: 12

>Should have looked closer at your actual code before I opened my yap. I don't
>use bash, but I'm guessing that each command within a `` pair is forked as a
>separate process, so the display variable is not set in the process that
>launches xastir. Try:
>
>`DISPLAY=192.168.0.2:0.0; export DISPLAY; /usr/local/bin/xastir `
>
>Again, not vouching for the actual syntax of bash...

Yes, each command in `` is run in a separate process, and `` is not required 
for this example.

`` delimitation is used to get the output of a command and substitute it back 
into another command line as in.

a=`expr 4 \* 20`

to set a=80.  So, when you are just running a command, you don't need ``.  
Also, in the shell, variables set preceeding a command are implicitly
exported into that commands process, so you just need

DISPLAY=192.168.0.2:0.0 /usr/local/bin/xastir

without any semi-colons to make this command work as intended.
-----
gregg@cytetech.com  (Cyte Technologies Inc)

----------------------------------------------------------------------

Subject: Winter 2003 Packet Status Register Available
From: John Ackermann   N8UR <jra@febo.com>
Date: Wed, 05 Feb 2003 11:56:10 -0500
X-Message-Number: 13

The Winter, 2003 issue of TAPR's journal, The Packet Status Register, is
available online at http://www.tapr.org/PSR.

Its contents include:

*  New 802.11 E-List
*  TAPR Project Policy
*  OneTech =B902 Technical Symposium
*  Book Review: 802.11 Wireless Networks
*  3D Environments and Mars: A Follow-up from the 2002 DCC
*  Extending Icom OPC-581 Extension Cables for Icom IC-706s
*  Digital Radio Mondiale and Amateur Radio Implications
*  2003 in Connecticut
		
Enjoy!

73,
John

----
John Ackermann    N8UR         jra@febo.com     http://www.febo.com
President, TAPR                n8ur@tapr.org    http://www.tapr.org

----------------------------------------------------------------------

Subject: Re: [ Steve Dimse ] Re: xsatir pid autostart
From: "Curt Mills, WE7U" <hacker@tc.fluke.com>
Date: Wed, 5 Feb 2003 09:40:08 -0800 (PST)
X-Message-Number: 14

On Wed, 5 Feb 2003, Gregg G. Wonderly wrote:

>Yes, each command in `` is run in a separate process, and `` is not required
>for this example.
>
>`` delimitation is used to get the output of a command and substitute it back
>into another command line as in.
>
>a=`expr 4 \* 20`
>
>to set a=80.  So, when you are just running a command, you don't need ``.
>Also, in the shell, variables set preceeding a command are implicitly exported
>into that commands process, so you just need
>
>DISPLAY=192.168.0.2:0.0 /usr/local/bin/xastir

What's with all this Unix stuff?  ;-)

Check out we7u-14's raw packet on findu:  New Xastir tinkerings in
the works...

-- 
Curt Mills, WE7U                    hacker_NO_SPAM_@tc.fluke.com
Senior Methods Engineer/SysAdmin
"Lotto:    A tax on people who are bad at math!"
"Windows:  Microsoft's tax on computer illiterates!" -- WE7U
"The world DOES revolve around me:  I picked the coordinate system!"

----------------------------------------------------------------------

Subject: Re: KISS TNC nearly a digipeater...
From: <BobDonnell@arkalmus.com>
Date: Wed, 5 Feb 2003 09:46:48 -0800
X-Message-Number: 15

This might be OK - if you've got a spare computer available.  The
emphasis here was "desperate".  This also doesn't require that you
dedicate a computer to the job.  If it's not a KISS-only TNC, then you'd
need a computer to put the TNC into KISS mode, but once done, the TNC
and radio combo can be left where the linking works, and you can take
your computer (and presumably the other radio/TNC) off to where you need
the end point of the communications to be.  Or you can send the instant
digipeater off in the SAR rig that's going to the hilltop to act as your
digipeater.  Of course, if the TNC is commandable (not KISS-only) you
can also put a your callsign/SSID in it and have it be a more
intelligent digipeater.  This won't help if you're trying to see "all"
the traffic on the channel, which the really dumb KISS digi would do,
but if the channel's busy, the dumb KISS TNC isn't the right choice
anyway.

73, Bob, KD7NM

----------------------------------------------------------------------

Subject: Re:  xsatir pid autostart
From: Steve Dimse <k4hg@tapr.org>
Date: Wed,  5 Feb 2003 12:55:41 -0500
X-Message-Number: 16

On 2/5/03 at 9:40 AM hacker@tc.fluke.com (Curt Mills, WE7U) sent:

>What's with all this Unix stuff?  ;-)
>
>Check out we7u-14's raw packet on findu:  New Xastir tinkerings in
>the works...

Great, so now you can have a reliable open source APRS client on top of a
buggy, insecure, proprietary OS ;-) Would that be the best of the worst or
the worst of the best????

Of course, you can also run xastir on Mac OS X, so it is possible get the
best of the best ;-)

Steve K4HG

----------------------------------------------------------------------

Subject: findU changes
From: Steve Dimse <k4hg@tapr.org>
Date: Wed,  5 Feb 2003 13:03:36 -0500
X-Message-Number: 17

Things have been running so well, you may have forgotten that findU is
running on only the backup server. The primary findU server has finally
beed moved to its new location, and is up and running. Many thanks to John
Bohman N2PQV for placing the box in his data center in New Jersey, were it
lives in plush surroundings, what with the huge data pipes, security, and
conditioned power and air.

This means the only thing which has not been available lately, namely email
for the findu.com and aprs.net domains (most importantly for the emailing
of position reports), is now functional. So, if there is anything that was
running on findU before the upheaval and is not available now, please let
me know.

For now, I will be leaving the backup server as www.findu.com, waiting for
3 or 4 weeks until the primary server has a large enough history to handle
long track requests, at that point we will be going to load sharing, where
when you ask for www.findu.com, you will get one or the other randomly.
This will result in improved reliabilty.

At any time (including now) you can force a request to one machine or the
other using www1.findu.com (New Jersey) or www2.findu.com (Texas).

Steve K4HG

----------------------------------------------------------------------

Subject: Re:  xsatir pid autostart
From: "Curt Mills, WE7U" <hacker@tc.fluke.com>
Date: Wed, 5 Feb 2003 10:07:03 -0800 (PST)
X-Message-Number: 18

On Wed, 5 Feb 2003, Steve Dimse wrote:

>Great, so now you can have a reliable open source APRS client on top of a
>buggy, insecure, proprietary OS ;-) Would that be the best of the worst or
>the worst of the best????

Well you know, you always have to give the customer what they ask
for, even if you know in your heart that it's not in their best
interest.  ;-)

>Of course, you can also run xastir on Mac OS X, so it is possible get the best
>of the best ;-)

Can't argue with that logic!  Dad/sister are mac-heads and swear by them.
They're each running OSX and totally thrilled with it.  I never thought I'd
see the day when dad was running Unix!  Apple did a good thing.

Me, I suffer though unreliable hardware (PC hardware because it's super
cheap), but then put a reliable OS on top of it (Linux).  I guess I don't
learn either, penny-pinching myself into the ground. I should get a Mac and
be done with it.  I could still run everything I do now, including Xastir.

Obligatory APRS:  Updated Xastir capabilities page is at:

    http://www.eskimo.com/~archer/xastir.html

--
Curt Mills, WE7U                    hacker_NO_SPAM_@tc.fluke.com
Senior Methods Engineer/SysAdmin
"Lotto:    A tax on people who are bad at math!"
"Windows:  Microsoft's tax on computer illiterates!" -- WE7U
"The world DOES revolve around me:  I picked the coordinate system!"

----------------------------------------------------------------------



Read previous mail | Read next mail


 16.11.2026 03:26:13lGo back Go up