[ solved ]M1xx custom whit bash command
21 Mar 2015 03:55 - 21 Mar 2015 19:27 #57042
by bkt
[ solved ]M1xx custom whit bash command was created by bkt
I write a custom M101 code that contains this symple code
but not work ... where is my error?
#!/bin/bash
echo 'hello world' >> foo.txt
but not work ... where is my error?
Last edit: 21 Mar 2015 19:27 by bkt.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
Less
More
- Posts: 5007
- Thank you received: 1441
21 Mar 2015 08:27 #57054
by Todd Zuercher
Replied by Todd Zuercher on topic M1xx custom whit bash command
To make a custom M-code work there are several things that must be set up right.
1) The file must be saved in the directory specified in your ini file in the [RS274NGC] Section by USER_M_PATH
2) The file needs to be named with a capitol M and 1xx number, with no extension.
3) You have to set the permission of the file as executable.
4) The file must exist before starting Linuxcnc.
linuxcnc.org/docs/html/gcode/m-code.html#sec:M100-to-M199
1) The file must be saved in the directory specified in your ini file in the [RS274NGC] Section by USER_M_PATH
2) The file needs to be named with a capitol M and 1xx number, with no extension.
3) You have to set the permission of the file as executable.
4) The file must exist before starting Linuxcnc.
linuxcnc.org/docs/html/gcode/m-code.html#sec:M100-to-M199
Please Log in or Create an account to join the conversation.
21 Mar 2015 19:26 #57065
by bkt
Replied by bkt on topic M1xx custom whit bash command
I do a big mistake ..... I'm in a fresh installation of Ubuntu .... the right path are /k1/foo.txt not foo.text ....... the old habbit is hard to die....... sorry for steal time.
Please Log in or Create an account to join the conversation.
Time to create page: 0.144 seconds