[solved] no gui pyton script & ssh ...
23 Mar 2017 19:01 - 24 Mar 2017 09:33 #90141
by bkt
[solved] no gui pyton script & ssh ... was created by bkt
I use these script via ssh ...
I have four machine, one with no gui at all and all command is send via modbus->halui .. for charge new .ngc I use script and ssh ...
the scrip above works fine in 3 machine (with axis interface only for test ... but it works all via modbus->halui) ... but the script return any time empty string with machine with no-gui ....
I need a gui interface for run these command ar not??
regards
giorgio
#! /usr/bin/python
import sys
import linuxcnc
c = linuxcnc.stat()
c.poll()
a = c.file
sys.exit(a)
I have four machine, one with no gui at all and all command is send via modbus->halui .. for charge new .ngc I use script and ssh ...
the scrip above works fine in 3 machine (with axis interface only for test ... but it works all via modbus->halui) ... but the script return any time empty string with machine with no-gui ....
I need a gui interface for run these command ar not??
regards
giorgio
Last edit: 24 Mar 2017 09:33 by bkt.
Please Log in or Create an account to join the conversation.
23 Mar 2017 19:36 #90147
by bkt
Replied by bkt on topic no gui pyton script & ssh ...
it seems there are somethings of wrong with ssh key ..... because the scrip works locally on machine with problem but not remotely
tomorrow I control these ...
regards
giorgio
tomorrow I control these ...
regards
giorgio
Please Log in or Create an account to join the conversation.
24 Mar 2017 09:09 #90178
by bkt
Replied by bkt on topic no gui pyton script & ssh ...
no my ssh line is ok .... today I test it on tty2 (without gui) and all works fine .... at these time I think the problem is login user related ... my config start from bash script into launch from rc.local so In my mind ubuntu must start tty1 user and after linuxcnc (and if I try login with tty1 is not possible .... only wit tty2, tty3 etc etc) but I'm not shure of these because command "who" not show tty1 user only other .....
regards
giorgio
regards
giorgio
Please Log in or Create an account to join the conversation.
24 Mar 2017 09:32 #90180
by bkt
Replied by bkt on topic no gui pyton script & ssh ...
mmmm ..... after 2 reboot all works fine .... ethernet cable connection problem ... or other ethernet related problem maybe...
I not know ... but now all works There are no program or phisical problem apparently ... and I not change anyting I make only sending command test from local and from remote...
Regards
Giorgio
I not know ... but now all works There are no program or phisical problem apparently ... and I not change anyting I make only sending command test from local and from remote...
Regards
Giorgio
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 18516
- Thank you received: 6185
24 Mar 2017 11:27 #90188
by tommylight
Replied by tommylight on topic no gui pyton script & ssh ...
You are unstopable !!!
Regards,
Tom
Regards,
Tom
The following user(s) said Thank You: bkt
Please Log in or Create an account to join the conversation.
Time to create page: 0.066 seconds