- Posts: 1111
- Thank you received: 0
[solved] no gui pyton script & ssh ...
9 years 7 months ago #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
Code:
#! /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
Please Log in to join the conversation.
9 years 7 months ago #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 to join the conversation.
9 years 7 months ago #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 to join the conversation.
9 years 7 months ago #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
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
Less
More
- Posts: 22012
- Thank you received: 4
9 years 7 months ago #90188
by tommylight
Replied by tommylight on topic no gui pyton script & ssh ...
You are unstopable !!!
Regards,
Tom
Regards,
Tom
Please Log in to join the conversation.
Time to create page: 0.085 seconds
