Dewey,

Ok, I got fooled, the absolute path is working. The problem is linuxcncrsh 
returns an ack even if the does not open, and axis, which I am also running for 
startup purposes, does not update the display for the opened file (except in 
the heading).

The previous version also worked with a relative path, which so far is not 
working. The full path is:

/home/emcuser/linuxcnc/nc_files/myfile.nc

So far, using relative paths of 
~/linuxcnc/nc_files/myfile.nc
linuxcnc/nc_files/myfile.nc
nc_files/myfile.nc
my_file.nc

have not worked. Is there a default path within the current user, or can it be 
specified in the ini file?

Thanks,
Eric


On September 1, 2017 12:02:33 AM EDT, Dewey Garrett <dgarr...@panix.com> wrote:
>linuxcncrsh (emcrsh.cc) has had little maintenance
>except for updates for joints_axes and those have
>not (intentionally) altered file opening.
>
>I did some experimenting using a run-in-place (RIP)
>build of the master branch at commit:
>  a7aeaa6 Tue Aug 29 09:25:23 2017 -0700
>
>Procedure:
>  I use axis gui for its display/dro but issue
>  commands from linuxcncrsh.
>  This is a convenient method to see errors that
>  help illustrate what needs to be done.
>
>I use simple .ngc files like:
>$ cat /tmp/a.ngc
>(debug, AAAAAAA)
>m2
>
>1) in terminal (ONE):
>   $ source $GIT_ROOT_DIR/scripts/.rip-environment
>   $ linuxcnc $GIT_ROOT_DIR/configs/sim/axis/axis.ini &
>
>2) in a separate terminal (TWO):
>   $ source $GIT_ROOT_DIR/scripts/.rip-environment
>   $ linuxcncrsh
>
>3) in a third terminal (THREE):
>The files /tmp/a.ngc,/tmp/b.ngc,c.ngc ran as expected
>with the following sequence.
>
>Session transcript follows:
>$ telnet localhost 5007
>Trying ::1...
>Trying 127.0.0.1...
>Connected to localhost.
>Escape character is '^]'.
>hello EMC me 1
>HELLO ACK EMCNETSVR 1.1
>set enable EMCTOO
>set enable EMCTOO
>set verbose on
>set verbose on
>SET VERBOSE ACK
>set estop off
>set estop off
>SET ESTOP ACK
>set machine on
>set machine on
>SET MACHINE ACK
>set home -1
>set home -1
>SET HOME ACK
>set mode auto
>set mode auto <----------- reqd
>SET MODE ACK
>set open /tmp/a.ngc <----- full pathname
>set open /tmp/a.ngc
>SET OPEN ACK
>set run 0
>set run 0
>SET RUN ACK
>set open /tmp/b.ngc <----- full pathname
>set open /tmp/b.ngc
>SET OPEN ACK
>set run 0
>set run 0
>SET RUN ACK
>set open c.ngc <---------- relative (to ini dir) pathname
>set open c.ngc
>SET OPEN ACK
>set run 0
>set run 0
>SET RUN ACK
>
>-- 
>Dewey Garrett
>
>
>------------------------------------------------------------------------------
>Check out the vibrant tech community on one of the world's most
>engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>_______________________________________________
>Emc-developers mailing list
>Emc-developers@lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/emc-developers

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to