Silly bin/sh question
- Mike_Eitel
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 1159
- Thank you received: 185
27 Apr 2011 13:39 #9391
by Mike_Eitel
Silly bin/sh question was created by Mike_Eitel
I can not see a reaction when I try to start a file from the examples containing
#!/bin/sh
# M101 in your G code program will run the Linux commands in this
# shell script "batch" file, passing the P and Q variables as command
# line arguments.
# give the command line arguments descriptive names
P=$1
Q=$2
SH
echo "M101 P$P Q$Q: put your code here"
exit 0
So I tried to find bin/sh could find versus f.x. bin/phyton
Is there something missing in my installation or do I have a hughe NRFM ptoblem with linux ??
THX Mike
#!/bin/sh
# M101 in your G code program will run the Linux commands in this
# shell script "batch" file, passing the P and Q variables as command
# line arguments.
# give the command line arguments descriptive names
P=$1
Q=$2
SH
echo "M101 P$P Q$Q: put your code here"
exit 0
So I tried to find bin/sh could find versus f.x. bin/phyton
Is there something missing in my installation or do I have a hughe NRFM ptoblem with linux ??
THX Mike
Please Log in or Create an account to join the conversation.
27 Apr 2011 14:40 #9398
by BigJohnT
Replied by BigJohnT on topic Re:Silly bin/sh question
Some info on Mxx is in the manual.
www.linuxcnc.org/docview/html/gcode_main.html#sec:M100-to-M199:
I'd guess you might not have the permissions set correctly or you did not copy the example to your nc_files directory...
John
www.linuxcnc.org/docview/html/gcode_main.html#sec:M100-to-M199:
I'd guess you might not have the permissions set correctly or you did not copy the example to your nc_files directory...
John
Please Log in or Create an account to join the conversation.
- Mike_Eitel
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 1159
- Thank you received: 185
29 Apr 2011 08:44 #9496
by Mike_Eitel
Replied by Mike_Eitel on topic Re:Silly bin/sh question
Good morning
I got this SH running, also I don't now why first test did not work
....
What I still want is to use M1xx commands via pyvcp.
I want to have a set of programs, executed via pyvcp pushbutton, naturally with normal preview in axis.
I can call:
a. "Phyton code" ...... can not transfer to Axis as this is a "ubuntu child problem"
b. "Subroutines" ...... first I see nothing in axis, second G code starts directly, third M1 is not working as it locks up Axis
c: I can do something based on #!/bin/axis ....... but this restars EMC
Is there a way/command similar to "halrun" that loads a file into axis, as the normal load file button is doing it.
Mike
I got this SH running, also I don't now why first test did not work
![:-( :-(](/media/kunena/emoticons/sad.png)
What I still want is to use M1xx commands via pyvcp.
I want to have a set of programs, executed via pyvcp pushbutton, naturally with normal preview in axis.
I can call:
a. "Phyton code" ...... can not transfer to Axis as this is a "ubuntu child problem"
b. "Subroutines" ...... first I see nothing in axis, second G code starts directly, third M1 is not working as it locks up Axis
c: I can do something based on #!/bin/axis ....... but this restars EMC
Is there a way/command similar to "halrun" that loads a file into axis, as the normal load file button is doing it.
Mike
Please Log in or Create an account to join the conversation.
29 Apr 2011 13:16 #9501
by BigJohnT
Replied by BigJohnT on topic Re:Silly bin/sh question
I would look a having your pyvcp button execute a MDI command. I do that for a rapid to home on my plasma.
www.linuxcnc.org/docview/html/gui_halui.html#sub:MDI
John
www.linuxcnc.org/docview/html/gui_halui.html#sub:MDI
John
Please Log in or Create an account to join the conversation.
- Mike_Eitel
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 1159
- Thank you received: 185
29 Apr 2011 13:23 #9502
by Mike_Eitel
Replied by Mike_Eitel on topic Re:Silly bin/sh question
Hi John yes can do all that ( and did it in different tests.
What I try to have is :
A set of programs connected viapyvcp pushbuttons, and as a result a normal preview in axis and than the posibility to start that program..
As descibed before I have found and executed three methots, all not what I want to use
So the last way is to "simultae the load mechanism" of axis
What I try to have is :
A set of programs connected viapyvcp pushbuttons, and as a result a normal preview in axis and than the posibility to start that program..
As descibed before I have found and executed three methots, all not what I want to use
So the last way is to "simultae the load mechanism" of axis
Please Log in or Create an account to join the conversation.
29 Apr 2011 13:45 #9503
by BigJohnT
Replied by BigJohnT on topic Re:Silly bin/sh question
That's beyond my level of guesspertice ![:) :)](/media/kunena/emoticons/smile.png)
John
![:) :)](/media/kunena/emoticons/smile.png)
John
Please Log in or Create an account to join the conversation.
- Mike_Eitel
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 1159
- Thank you received: 185
29 Apr 2011 15:28 #9513
by Mike_Eitel
Replied by Mike_Eitel on topic Re:Silly bin/sh question
Yes mine too.
I'm since 30 years in industial sw ( mostly sales) , so I have rough ideas what is possible and what needs a real expert.
My only small hope/idea is that I might have a look into that remoteaxis....
Mike
I'm since 30 years in industial sw ( mostly sales) , so I have rough ideas what is possible and what needs a real expert.
My only small hope/idea is that I might have a look into that remoteaxis....
Mike
Please Log in or Create an account to join the conversation.
- Mike_Eitel
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 1159
- Thank you received: 185
29 Apr 2011 18:09 #9515
by Mike_Eitel
Replied by Mike_Eitel on topic Re:Silly bin/sh question
Does anybody know if I could use Emcrsh to place a new file into running axis ?
Please Log in or Create an account to join the conversation.
16 Jun 2011 13:58 #10576
by ArcEye
Replied by ArcEye on topic Re:Silly bin/sh question
Hi
Sorry, didn't see this at the time
Very simple 'axis-remote ~/emc2/ngc/thefileyouwant.ngc'
You can also reload or enter MDI commands from it too
regards
Sorry, didn't see this at the time
Very simple 'axis-remote ~/emc2/ngc/thefileyouwant.ngc'
You can also reload or enter MDI commands from it too
regards
Please Log in or Create an account to join the conversation.
- Mike_Eitel
-
Topic Author
- Offline
- Platinum Member
-
Less
More
- Posts: 1159
- Thank you received: 185
16 Jun 2011 16:09 #10583
by Mike_Eitel
Replied by Mike_Eitel on topic Re:Silly bin/sh question
X ArcEye
I will try tommorow.
If this works as I expect, this can solve a lot of dreams.
Mike
I will try tommorow.
If this works as I expect, this can solve a lot of dreams.
Mike
Please Log in or Create an account to join the conversation.
Time to create page: 0.084 seconds