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

More
7 years 11 months ago #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):
Code:
$ 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):
Code:
$ 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

Please Log in to join the conversation.

More
7 years 11 months ago #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 to join the conversation.

Time to create page: 0.029 seconds
Powered by Kunena Forum