Limit an Axis or part of Machine travel to specific tasks possible?

More
20 Nov 2018 14:05 - 20 Nov 2018 14:06 #121052 by dgarrett

...how to read INI values in bash

inivar is a provided program (used by the main script named linuxcnc)

deb-install example (using sim config ~/linuxcnc/configs/sim/sim.axis/axis.ini):
$ which linuxcnc
/usr/bin/linuxcnc
$ which inivar
/usr/bin/inivar
$ inivar -h
inivar: -var <variable> {-sec <section>} {<-ini inifile>} [-num <nth item>]
$ inivar -ini ~/linuxcnc/configs/sim.axis/axis.ini -sec EMC -var VERSION
1.1


RIP example (base dir== /home/git/linuxcnc-dev):
$ source /home/git/linuxcnc-dev/scripts/rip-environment
$ which linuxcnc
/home/git/linuxcnc-dev/scripts/linuxcnc
$ which inivar
/home/git/linuxcnc-dev/bin/inivar
$ inivar -h
inivar: -var <variable> {-sec <section>} {<-ini inifile>} [-num <nth item>]
$ inivar -ini /home/git/linuxcnc-dev/configs/sim/axis/axis.ini -sec EMC -var VERSION
1.1
Last edit: 20 Nov 2018 14:06 by dgarrett.

Please Log in or Create an account to join the conversation.

More
20 Nov 2018 14:10 #121055 by andypugh
I think that the INI file might be an environment variable too?
$INIFILE ?

(Not at a LinuxCNC machine so I can't test if that remains available to M100+)

Please Log in or Create an account to join the conversation.

Time to create page: 0.084 seconds
Powered by Kunena Forum