Script bash

More
15 Dec 2014 22:04 #54022 by ArcEye
Replied by ArcEye on topic Script bash
Hi

It won't make any difference whether you have an installed or RIP build.

The easy rule is don't ever use % unless you want all offsets etc to carry over to the next program.
This normally applies to programs running through ngcgui
When you do use it, they must be top and bottom of the file, with no M2 or M30 terminating.

For all other instances, just terminate the file with M2

regards

Please Log in or Create an account to join the conversation.

More
16 Dec 2014 00:58 - 16 Dec 2014 01:00 #54029 by grzesiekzxr
Replied by grzesiekzxr on topic Script bash
Hi
Thanks for response,
As I wrote tried many ways to wrap the gcod and any one of them work .
In every combination FILTER display error:
emc/task/emctask.cc 374: interp_error: File ended with no percent sign
File ended with no percent sign
not posible to open /tmp/tmpOHyGor/test.inv


Good to know that :
"
It won't make any difference whether you have an installed or RIP build."

I was thinking that this produce an error.
Now I don't know what should I looking for to find cause/solution this strange behaviour ?
Maybe if one of the important files is corrupt I can find it and fix it.
Do You have any idea what to do?
I very much appreciate your support,
regards.
Last edit: 16 Dec 2014 01:00 by grzesiekzxr.

Please Log in or Create an account to join the conversation.

More
16 Dec 2014 01:11 #54030 by ArcEye
Replied by ArcEye on topic Script bash
Hi

In every combination FILTER display error:
emc/task/emctask.cc 374: interp_error: File ended with no percent sign
File ended with no percent sign
not posible to open /tmp/tmpOHyGor/test.inv


The FILTER is not displaying any error

The interpreter is giving the error, but there is also an error that suggests the file supposed to be passed to the filter could not be opened,
so who knows what rubbish is being passed to the interpreter.

Why is it trying to open a file in /tmp ?

You will need to attach the filter file and the .inv file you are passing to it, before the error you say you are getting can be tested.

regards

Please Log in or Create an account to join the conversation.

More
16 Dec 2014 01:32 #54031 by grzesiekzxr
Replied by grzesiekzxr on topic Script bash
FILTER file:

#!/bin/bash

cat $1 |sed 's/X\([ ]*\)\([-0-9\.]*\)/X[-1*[\2]]/g'

exit 0


GCODE file:

g17 g21
f 4444
g1x2 y5
m2

regads.

Please Log in or Create an account to join the conversation.

More
16 Dec 2014 21:38 #54064 by ArcEye
Replied by ArcEye on topic Script bash
Hi

Just tried loading both your gcode and another one of mine through the same filter.

No errors and shows what would be expected

There is obviously something else in the chain in your setup

regards

Please Log in or Create an account to join the conversation.

More
17 Dec 2014 16:45 #54090 by grzesiekzxr
Replied by grzesiekzxr on topic Script bash
Hallo,
thank You,

''No errors and shows what would be expected''

I see the same on the other computer.
I 'm thinking about upgrading to newest version 2.6.5 (I believe that during this process errors wiil be removed),
Could You give me some tips to avoid unnecessary problems.

regards.

Please Log in or Create an account to join the conversation.

More
17 Dec 2014 23:18 #54098 by ArcEye
Replied by ArcEye on topic Script bash
I actually tested it with MachineKit, but the Linuxcnc master was the same

Could You give me some tips to avoid unnecessary problems.


I can but point you to the page, everything is there, no special black arts required

regards

Please Log in or Create an account to join the conversation.

More
18 Dec 2014 15:29 #54116 by ArcEye
Replied by ArcEye on topic Script bash

Please Log in or Create an account to join the conversation.

More
20 Dec 2014 18:39 #54176 by grzesiekzxr
Replied by grzesiekzxr on topic Script bash
Hallo,.
Before Christmas I got a lot of duties so that delay.
wiki.linuxcnc.org/cgi-bin/wiki.pl?UpdatingTo2.6
Of course I know this page ,but (always is BUT :lol: ) my internet is too slow, so I had to make a record cd and try to update from it and there is a problem .
When I try to add cd have an error scanning the cd-room
E: failed to mount the cd-room (I was trying with three CD "ISO")

I know you have helped me a lot and this thread is not about the upgrade, so just as I'm done with this I will tell what it turned out.
Peaceful and happy christmas :)
Thank You.
regards

Please Log in or Create an account to join the conversation.

More
20 Dec 2014 18:55 #54177 by ArcEye
Replied by ArcEye on topic Script bash
Try the method on the page
article.gmane.org/gmane.linux.distributions.emc.user/52401

if you use zsync, it can resume a download, do a checksum and allow you to update your image without downloading the whole thing again

regards

Please Log in or Create an account to join the conversation.

Time to create page: 0.141 seconds
Powered by Kunena Forum