halrun-- manipulate the LinuxCNC HAL from the command line
halrun[-I] [halcmd_opts] [filename[.hal|.tcl]]
halrun-T [halcmd_opts] [filename[.hal|.tcl]]
halrun is a convenience script used to manipulate the HAL (Hardware Abstraction Layer) from the command line.
When invoked, halrun:
Sets up the realtime environment.
Executes a command interpreter (halcmd or haltcl).
(Optionally) runs an interactive session.
Tears down the realtime environment.
If no filename is specified, an interactive session is started.
The session will use halcmd unless -T is specified in which case haltcl will be used.
If a filename is specifed and neither the -I nor the -T option
is included, the filename will be processed by the command
interpreter corresponding to the filename extension (halcmd
or haltcl). + After processing, the realtime environment
will be torn down.
If a filename is specifed and the -I or -T option is included,
the file is processed by the appropriate command interpreter and
then an interactive session is started for halcmd or
haltcl according to the -I or -T option.
When a .hal file is specifed, the halcmd_opts are passed to halcmd.
When a .tcl file is specified, the only valid options are:
-f filename[.tcl|.hal] (alternate means of specifying a file)
Run an interactive halcmd session
Run an interactive haltcl session.
Forcibly cause the realtime environment to exit. It releases the HAL mutex, requests that all HAL components unload, and stops the realtime system. -U must be the only commandline argument.
display a brief help screen and exit
None known at this time.
Original version by John Kasunich, as part of the LinuxCNC Enhanced Machine Controller project. Now includes major contributions by several members of the project.
Copyright 2003 John Kasunich. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.