On 29 May 99 at 15:21, Tomi Manninen wrote:

> On Thu, 27 May 1999, Jose Angel Amador Fundora wrote:
> 
> > I found that in order to create mheard.dat you do a mheardd -f, and 
> > flushing the inexistent one, you are given a new, empty mheard.dat 
> > file.
> > 
> > Anything else failed here. 
> > 
> > Anyone else proposing a different way to do it ?? 8-)
> 
> Well, The Correct Way (tm) to do this is to "make installconf" when first
> installing the utilities. Later of course this is not so good as it will
> overwrite the config files...

I did so over an installed system, when migrating HD's, so I should 
not "make installconf".

> The normal unix way of creating an empty file is with touch:
> 
>   touch /var/ax25/mheard/mheard.dat
> 
> If you want to truncate an existing file to zero length without changing
> the permissions you can do:
> 
>   > /var/ax25/mheard/mheard.dat

I did echo > mheard.dat, and it created a 1 byte file, not an empty 
one. Now I see a better way...tnx !

> or
> 
>   cp /dev/null /var/ax25/mheard/mheard.dat

Interesting way of copying nothing into something ! I come from 
MSDOS, and we have no /dev/null accesible there...8-)

> 
> The former will probably only work with Bourne shell and it's derivatives
> (like bash).
> 
> That said, looking at the mheardd source, it should create the file as
> long as /var/ax25/mheard/ directory exists. In fact if invoked with the -f
> flag, mheardd will simply remove the the old file and then continue
> normally.

It was trial and error. It worked for me, so I did reccomend that way.
I have been running Linux continuously for a bit less than a year, 
and I see there is still a lot to learn. 

Thank you once again, Tomi.

73 de Jose, CO2JA
---

 Ing. Jose A. Amador          | Telf: (537) 20-7814 
 Depto de Telecomunicaciones  | E-Mail: [EMAIL PROTECTED] 
 ISPJAE                       |         

Reply via email to