control logname at startup...

19 views
Skip to first unread message

Bernard Mayer

unread,
Jun 4, 2020, 1:34:48 PM6/4/20
to kplex
Hello !
Apologize me for my poor english...
pi user start kplex, not a daemon/service.
In /etckplex.conf, i have 2 [file] entries.

[file]
name=READ183
filename=/home/pi/mypipe
persist=yes
direction=in

[file]
name=LOG
filename=/home/pi/kplex-0123456789.nmea4
direction=out
owner=pi
perm=666
group=pi
#append=yes

Can i comment LOG filename, and furnish this information in command line ? How to ?

[file]
name=LOG
#filename=/home/pi/kplex-0123456789.nmea4

pi: $ kplex -? -? filename=/home/pi/kplex-20200604_235959.nmea4


Thanks by advance

Bernard Mayer

unread,
Jun 11, 2020, 2:18:22 PM6/11/20
to kplex
Simple !

i comment log file section in /etc/kplex.conf
i run kplex and add log file section in command line !
kplex file:filename=/home/pi/kplex_20200611_201600.nmea4,direction=out,owner=pi,group=pi,perm=666,append=yes,timestamp=ms
:-)


Le jeudi 4 juin 2020 19:34:48 UTC+2, Bernard Mayer a écrit :
Hello !
Apologize me for my poor english...
pi user start kplex, not a daemon/service.
In /etckplex.conf, i have 2 [file] entries.

.../...
[file]
name=LOG
filename=/home/pi/kplex-0123456789.nmea4
direction=out
owner=pi
perm=666
group=pi
#append=yes

Can i comment LOG filename, and furnish this information in command line ? How to ?

Keith Young

unread,
Jun 14, 2020, 10:21:43 AM6/14/20
to kplex
Simple !

i comment log file section in /etc/kplex.conf
i run kplex and add log file section in command line !
kplex file:filename=/home/pi/kplex_20200611_201600.nmea4,direction=out,owner=pi,group=pi,perm=666,append=yes,timestamp=ms
:-)

Sorry for delay in replying: Yes that's the way to do it.  There is unfortunately no provision currently for overriding or augmenting an interface specification in the config file by use of command line options.  You'll simply create a new interface, or an error if you try and name the interface with the same name as one specified in the config file.  This is maybe not perfect but what you have done (specify the whole interface on the command line and remove from the config file) is the best alternative I can think of
Reply all
Reply to author
Forward
0 new messages