printer@printer-desktop:~$ linuxcnc -dv
Debug mode on
+ getopts dvlhk opt
+ case "$opt" in
+ tty -s
+ PRINT_FILE=/dev/fd/1
+ echo 'Verbose mode on'
Verbose mode on
+ getopts dvlhk opt
+ shift 1
+ case "2.6.32-122-rtai" in
++ uname -r
+ '[' 2.6.32-122-rtai '!=' 2.6.32-122-rtai ']'
+ tty -s
+ trap ErrorCheck EXIT
+ '[' '!' -z '' ']'
+ EXTRA_ARGS=
+ RUN_IN_PLACE=no
+ echo RUN_IN_PLACE=no
RUN_IN_PLACE=no
+ LINUXCNCVERSION=2.6.0-pre0-4458-g0777e71
+ export LINUXCNCVERSION
+ INIVAR=inivar
+ HALCMD='halcmd '
+ PICKCONFIG='/usr/bin/wish8.5 /usr/lib/tcltk/linuxcnc/bin/pickconfig.tcl'
+ LINUXCNC_EMCSH=/usr/bin/wish8.5
+ echo LINUXCNC_DIR=
LINUXCNC_DIR=
+ echo LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_BIN_DIR=/usr/bin
+ echo LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
+ echo LINUXCNC_SCRIPT_DIR=
LINUXCNC_SCRIPT_DIR=
+ echo LINUXCNC_RTLIB_DIR=/usr/realtime-2.6.32-122-rtai/modules/linuxcnc
LINUXCNC_RTLIB_DIR=/usr/realtime-2.6.32-122-rtai/modules/linuxcnc
+ echo LINUXCNC_CONFIG_DIR=
LINUXCNC_CONFIG_DIR=
+ echo LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
+ echo INIVAR=inivar
INIVAR=inivar
+ echo HALCMD=halcmd
HALCMD=halcmd
+ echo LINUXCNC_EMCSH=/usr/bin/wish8.5
LINUXCNC_EMCSH=/usr/bin/wish8.5
+ export LINUXCNC_TCL_DIR
+ export LINUXCNC_EMCSH
+ export LINUXCNC_HELP_DIR
+ export LINUXCNC_LANG_DIR
+ export REALTIME
+ export HALCMD
+ echo 'LINUXCNC - 2.6.0-pre0-4458-g0777e71'
LINUXCNC - 2.6.0-pre0-4458-g0777e71
+ '[' '!' -z '' ']'
+ '[' '!' -n '' ']'
++ /usr/bin/wish8.5 /usr/lib/tcltk/linuxcnc/bin/pickconfig.tcl
+ INIFILE=/home/printer/linuxcnc/configs/MyGUI/MyGUI.ini
+ '[' '!' -n /home/printer/linuxcnc/configs/MyGUI/MyGUI.ini ']'
+ INI_NAME=MyGUI.ini
+ INI_DIR=/home/printer/linuxcnc/configs/MyGUI
+ CONFIG_DIR=/home/printer/linuxcnc/configs/MyGUI
+ export CONFIG_DIR
+ echo 'Machine configuration directory is '\''/home/printer/linuxcnc/configs/MyGUI'\'''
Machine configuration directory is '/home/printer/linuxcnc/configs/MyGUI'
+ echo 'Machine configuration file is '\''MyGUI.ini'\'''
Machine configuration file is 'MyGUI.ini'
+ '[' '!' -f /home/printer/linuxcnc/configs/MyGUI/MyGUI.ini ']'
+ echo INIFILE=/home/printer/linuxcnc/configs/MyGUI/MyGUI.ini
INIFILE=/home/printer/linuxcnc/configs/MyGUI/MyGUI.ini
+ retval=
+ GetFromIni PARAMETER_FILE RS274NGC
+ name=PARAMETER_FILE
++ inivar -ini /home/printer/linuxcnc/configs/MyGUI/MyGUI.ini -var PARAMETER_FILE -sec RS274NGC
+ retval=emc.var
+ '[' '!' -n PARAMETER_FILE ']'
+ echo PARAMETER_FILE=emc.var
PARAMETER_FILE=emc.var
+ RS274NGC_PARAMFILE=emc.var
+ GetFromIniEx MOT MOT EMCMOT EMCMOT motmod
+ original_var='[MOT]MOT'
+ '[' 5 -ge 2 ']'
++ inivar -ini /home/printer/linuxcnc/configs/MyGUI/MyGUI.ini -var MOT -sec MOT
Can not find -sec MOT -var MOT -num 1 
+ retval=
+ shift 2
+ '[' 3 -ge 2 ']'
++ inivar -ini /home/printer/linuxcnc/configs/MyGUI/MyGUI.ini -var EMCMOT -sec EMCMOT
+ retval=motmod
+ return
+ EMCMOT=motmod.ko
+ GetFromIniEx IO IO EMCIO EMCIO io
+ original_var='[IO]IO'
+ '[' 5 -ge 2 ']'
++ inivar -ini /home/printer/linuxcnc/configs/MyGUI/MyGUI.ini -var IO -sec IO
Can not find -sec IO -var IO -num 1 
+ retval=
+ shift 2
+ '[' 3 -ge 2 ']'
++ inivar -ini /home/printer/linuxcnc/configs/MyGUI/MyGUI.ini -var EMCIO -sec EMCIO
+ retval=io
+ return
+ EMCIO=io
+ GetFromIni TASK TASK
+ name=TASK
++ inivar -ini /home/printer/linuxcnc/configs/MyGUI/MyGUI.ini -var TASK -sec TASK
+ retval=milltask
+ '[' '!' -n TASK ']'
+ echo TASK=milltask
TASK=milltask
+ EMCTASK=milltask
+ '[' milltask = emctask ']'
+ EMCSERVER=linuxcncsvr
+ GetFromIniQuiet HALUI HAL
+ name=HALUI
++ inivar -ini /home/printer/linuxcnc/configs/MyGUI/MyGUI.ini -var HALUI -sec HAL
+ retval=halui
+ '[' '!' -n HALUI ']'
+ echo HALUI=halui
HALUI=halui
+ HALUI=halui
+ GetFromIni DISPLAY DISPLAY
+ name=DISPLAY
++ inivar -ini /home/printer/linuxcnc/configs/MyGUI/MyGUI.ini -var DISPLAY -sec DISPLAY
+ retval=mygui
+ '[' '!' -n DISPLAY ']'
+ echo DISPLAY=mygui
DISPLAY=mygui
++ set -- mygui
++ echo mygui
+ EMCDISPLAY=mygui
++ set -- mygui
++ shift
++ echo
+ EMCDISPLAYARGS=
+ case $EMCDISPLAY in
+ GetFromIniEx NML_FILE LINUXCNC NML_FILE EMC /usr/share/linuxcnc/linuxcnc.nml
+ original_var='[LINUXCNC]NML_FILE'
+ '[' 5 -ge 2 ']'
++ inivar -ini /home/printer/linuxcnc/configs/MyGUI/MyGUI.ini -var NML_FILE -sec LINUXCNC
Can not find -sec LINUXCNC -var NML_FILE -num 1 
+ retval=
+ shift 2
+ '[' 3 -ge 2 ']'
++ inivar -ini /home/printer/linuxcnc/configs/MyGUI/MyGUI.ini -var NML_FILE -sec EMC
Can not find -sec EMC -var NML_FILE -num 1 
+ retval=
+ shift 2
+ '[' 1 -ge 2 ']'
+ '[' 1 -eq 0 ']'
+ retval=/usr/share/linuxcnc/linuxcnc.nml
+ NMLFILE=/usr/share/linuxcnc/linuxcnc.nml
+ export NMLFILE
+ KILL_TASK=
+ KILL_TIMEOUT=20
+ LOCKFILE=/tmp/linuxcnc.lock
+ '[' -f /tmp/linuxcnc.lock ']'
+ echo Starting LinuxCNC...
Starting LinuxCNC...
+ trap 'Cleanup ; exit 0' SIGINT SIGTERM
+ cd /home/printer/linuxcnc/configs/MyGUI
+ touch /tmp/linuxcnc.lock
++ inivar -ini /home/printer/linuxcnc/configs/MyGUI/MyGUI.ini -var INTRO_GRAPHIC -sec DISPLAY
Can not find -sec DISPLAY -var INTRO_GRAPHIC -num 1 
+ img=
++ inivar -ini /home/printer/linuxcnc/configs/MyGUI/MyGUI.ini -var INTRO_TIME -sec DISPLAY
Can not find -sec DISPLAY -var INTRO_TIME -num 1 
+ imgtime=
+ '[' '' = '' ']'
+ imgtime=5
+ '[' '' '!=' '' ']'
+ '[' '' '!=' '' ']'
+ echo 'Starting LinuxCNC server program: linuxcncsvr'
Starting LinuxCNC server program: linuxcncsvr
+ program_available linuxcncsvr
+ type -path linuxcncsvr
+ export INI_FILE_NAME=/home/printer/linuxcnc/configs/MyGUI/MyGUI.ini
+ INI_FILE_NAME=/home/printer/linuxcnc/configs/MyGUI/MyGUI.ini
+ sleep 1
+ linuxcncsvr -ini /home/printer/linuxcnc/configs/MyGUI/MyGUI.ini
+ echo 'Loading Real Time OS, RTAPI, and HAL_LIB modules'
Loading Real Time OS, RTAPI, and HAL_LIB modules
+ /etc/init.d/realtime start
+ export HAL_RTMOD_DIR=/usr/realtime-2.6.32-122-rtai/modules/linuxcnc
+ HAL_RTMOD_DIR=/usr/realtime-2.6.32-122-rtai/modules/linuxcnc
+ '[' io '!=' '' ']'
+ echo 'Starting LinuxCNC IO program: io'
Starting LinuxCNC IO program: io
+ program_available io
+ type -path io
+ echo io started
io started
+ halcmd loadusr -Wn iocontrol io -ini /home/printer/linuxcnc/configs/MyGUI/MyGUI.ini
+ echo halcmd loadusr io started
halcmd loadusr io started
+ '[' -n halui ']'
+ echo 'Starting HAL User Interface program: halui'
Starting HAL User Interface program: halui
+ program_available halui
+ type -path halui
+ halcmd loadusr -Wn halui halui -ini /home/printer/linuxcnc/configs/MyGUI/MyGUI.ini
++ inivar -ini /home/printer/linuxcnc/configs/MyGUI/MyGUI.ini -var TWOPASS -sec HAL -num 1
+ TWOPASS=
+ '[' -n '' ']'
+ NUM=1
++ inivar -tildeexpand -ini /home/printer/linuxcnc/configs/MyGUI/MyGUI.ini -var HALFILE -sec HAL -num 1
+ CFGFILE=MyGUI.hal
+ '[' -n MyGUI.hal ']'
+ case $CFGFILE in
+ halcmd -i /home/printer/linuxcnc/configs/MyGUI/MyGUI.ini -f MyGUI.hal
+ NUM=2
++ inivar -tildeexpand -ini /home/printer/linuxcnc/configs/MyGUI/MyGUI.ini -var HALFILE -sec HAL -num 2
+ CFGFILE=mode.hal
+ '[' -n mode.hal ']'
+ case $CFGFILE in
+ halcmd -i /home/printer/linuxcnc/configs/MyGUI/MyGUI.ini -f mode.hal
mode.hal:1: Pin 'mygui.hal_button8' does not exist
+ '[' '' = '' ']'
+ Cleanup
+ echo 'Shutting down and cleaning up LinuxCNC...'
Shutting down and cleaning up LinuxCNC...
+ for KILL_TASK in xlinuxcnc ylinuxcnc linuxcncpanel keystick iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel
+ /bin/pidof -x xlinuxcnc
+ for KILL_TASK in xlinuxcnc ylinuxcnc linuxcncpanel keystick iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel
+ /bin/pidof -x ylinuxcnc
+ for KILL_TASK in xlinuxcnc ylinuxcnc linuxcncpanel keystick iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel
+ /bin/pidof -x linuxcncpanel
+ for KILL_TASK in xlinuxcnc ylinuxcnc linuxcncpanel keystick iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel
+ /bin/pidof -x keystick
+ for KILL_TASK in xlinuxcnc ylinuxcnc linuxcncpanel keystick iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel
+ /bin/pidof -x iosh
+ for KILL_TASK in xlinuxcnc ylinuxcnc linuxcncpanel keystick iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel
+ /bin/pidof -x linuxcncsh
+ for KILL_TASK in xlinuxcnc ylinuxcnc linuxcncpanel keystick iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel
+ /bin/pidof -x linuxcncrsh
+ for KILL_TASK in xlinuxcnc ylinuxcnc linuxcncpanel keystick iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel
+ /bin/pidof -x linuxcnctop
+ for KILL_TASK in xlinuxcnc ylinuxcnc linuxcncpanel keystick iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel
+ /bin/pidof -x mdi
+ for KILL_TASK in xlinuxcnc ylinuxcnc linuxcncpanel keystick iosh linuxcncsh linuxcncrsh linuxcnctop mdi debuglevel
+ /bin/pidof -x debuglevel
+ program_available axis-remote
+ type -path axis-remote
+ '[' '!' -z :0.0 ']'
+ axis-remote --ping
+ '[' '' = other ']'
++ inivar -ini /home/printer/linuxcnc/configs/MyGUI/MyGUI.ini -var SHUTDOWN -sec HAL
+ SHUTDOWN=
+ '[' -n '' ']'
+ for KILL_TASK in linuxcncsvr milltask
+ /bin/pidof -x linuxcncsvr
2782
+ KillTaskWithTimeout
+ '[' '!' -n '' ']'
++ /bin/pidof -x linuxcncsvr
+ KILL_PIDS=2782
+ '[' '!' -n 2782 ']'
+ for KILL_PID in '$KILL_PIDS'
+ echo 'Killing task linuxcncsvr, PID=2782'
Killing task linuxcncsvr, PID=2782
+ /bin/kill 2782
+ WAIT=20
+ '[' 20 -gt 1 ']'
+ /bin/ps 2782
  PID TTY      STAT   TIME COMMAND
+ WAIT=0
+ '[' 0 -gt 1 ']'
+ '[' 0 -gt 0 ']'
+ '[' 0 -gt 0 ']'
+ KILL_PIDS=
+ KILL_TASK=
+ for KILL_TASK in linuxcncsvr milltask
+ /bin/pidof -x milltask
+ echo 'Stopping realtime threads'
Stopping realtime threads
+ halcmd stop
+ echo 'Unloading hal components'
Unloading hal components
+ halcmd unload all
++ seq 10
+ for i in '`seq 10`'
++ halcmd list comp
++ wc -w
+ '[' 1 = 1 ']'
+ break
+ echo 'Removing HAL_LIB, RTAPI, and Real Time OS modules'
Removing HAL_LIB, RTAPI, and Real Time OS modules
+ /etc/init.d/realtime stop
+ echo 'Removing NML shared memory segments'
Removing NML shared memory segments
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ ipcrm -M 1001
+ read b x t x x x x x x m x
+ case $b$t in
+ ipcrm -M 1002
+ read b x t x x x x x x m x
+ case $b$t in
+ ipcrm -M 1003
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ ipcrm -M 1004
+ read b x t x x x x x x m x
+ case $b$t in
+ ipcrm -M 1005
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ case $b$t in
+ read b x t x x x x x x m x
+ '[' -f /tmp/linuxcnc.lock ']'
+ rm /tmp/linuxcnc.lock
+ echo 'Cleanup done'
Cleanup done
+ exit -1
+ ErrorCheck
+ result=255
+ '[' '!' -z :0.0 ']'
+ /usr/bin/wish8.5
+ echo 'catch {send -async popimage destroy .}; destroy .'
+ '[' 255 -ne 0 ']'
+ tty -s
+ '[' -f /dev/fd/2 ']'
+ echo '(debug information was sent to stderr)'
+ '[' -f /dev/fd/1 ']'
+ echo '(print information was sent to stdout)'
+ echo 'LinuxCNC terminated with an error.  You can find more information in the log:
    /home/printer/linuxcnc_debug.txt
and
    /home/printer/linuxcnc_print.txt
as well as in the output of the shell command '\''dmesg'\'' and in the terminal'
LinuxCNC terminated with an error.  You can find more information in the log:
    /home/printer/linuxcnc_debug.txt
and
    /home/printer/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
+ rm -f /dev/fd/2 /dev/fd/1
+ exit 255
printer@printer-desktop:~$ 

