Re: [Emc-users] Link a Bash script to a hal signal

2009-11-16 Thread Frank Tkalcevic
troller (EMC) > Subject: Re: [Emc-users] Link a Bash script to a hal signal > > Thank you Frank, i could load the python scripts.. the > example for now.. > > i have a problem with my script.. when i load it and enter > the halcmd show.. > nothing appears.. only the halcmd appli

Re: [Emc-users] Link a Bash script to a hal signal

2009-11-16 Thread Leonardo Marsaglia
eg -W, you need to use the named > version, eg -Wn mycomponent > > That's what I do. > > Frank > > > -Original Message- > > From: Leonardo Marsaglia [mailto:leonardomarsagli...@gmail.com] > > Sent: Sunday, 15 November 2009 7:09 AM > > To: Enha

Re: [Emc-users] Link a Bash script to a hal signal

2009-11-14 Thread Frank Tkalcevic
That's what I do. Frank > -Original Message- > From: Leonardo Marsaglia [mailto:leonardomarsagli...@gmail.com] > Sent: Sunday, 15 November 2009 7:09 AM > To: Enhanced Machine Controller (EMC) > Subject: Re: [Emc-users] Link a Bash script to a hal signal > > Th

Re: [Emc-users] Link a Bash script to a hal signal

2009-11-14 Thread Leonardo Marsaglia
Thank you very much guys for your help, i think may be the best is to make a userspace component as john told.. I have only one doubt about that.. and it's about the directory in which the component has to be inserted so i can load it with the loadusr command.. i read about that in the hal manual

Re: [Emc-users] Link a Bash script to a hal signal

2009-11-14 Thread Jon Elson
Dave wrote: > If you hold the power off button down on the motherboard, the PC will not > power off?? > > I haven't seen any issues with that on the PCs I have loaded with EMC2. The > power button on the PCs I think is a function of the PC bios - hold it down > for x seconds and it will kill t

Re: [Emc-users] Link a Bash script to a hal signal

2009-11-14 Thread John Kasunich
Leonardo Marsaglia wrote: > Hello dave, first of all thanks for your answer > > What i'm trying to do is to link an external button to the halt command, to > power off the machine quickly, since the kernel has the acpi disconnected i > can't use the normal power off button in the motherboard. > >

Re: [Emc-users] Link a Bash script to a hal signal

2009-11-14 Thread Mark
I think Leonardo wants to trigger 'shutdown -h now's from a physical button. I posted earlier about using kexec to load an acpi-enabled kernel, which will then power down the machine at the end of the shutdown sequence. I assume he's trying to do that. For the record, killing power to the PC wit

Re: [Emc-users] Link a Bash script to a hal signal

2009-11-14 Thread Dave
>>i can't use the normal power off button in the motherboard. If you hold the power off button down on the motherboard, the PC will not power off?? I haven't seen any issues with that on the PCs I have loaded with EMC2. The power button on the PCs I think is a function of the PC bios - hold i

Re: [Emc-users] Link a Bash script to a hal signal

2009-11-13 Thread Leonardo Marsaglia
Hello dave, first of all thanks for your answer What i'm trying to do is to link an external button to the halt command, to power off the machine quickly, since the kernel has the acpi disconnected i can't use the normal power off button in the motherboard. So i decided to create a component with

Re: [Emc-users] Link a Bash script to a hal signal

2009-11-13 Thread Dave
Leonardo, what are you really trying to do? I don't know about running a bash script but in the Wiki there is an example for accessing pins via a Python script. http://www.linuxcnc.org/docview/html//hal_halmodule.html Dave Leonardo Marsaglia wrote: > Hello again, i think i figured out how to

Re: [Emc-users] Link a Bash script to a hal signal

2009-11-13 Thread Leonardo Marsaglia
Hello again, i think i figured out how to make the link, i found that i can use the function system included in the stdlib.h library.. The only problem that i have is that ubuntu doesn't seem to have that library. I installed the build-essential package and it's the same. What i'm trying to do i

[Emc-users] Link a Bash script to a hal signal

2009-11-12 Thread Leonardo Marsaglia
Hello everybody, i'm finishing with the setup of my machine and i have one question.. How can i link a signal to a bash script? is it possible to make a component with the sript in it and then use the component to activate that script whenever i want? Thanks in adavance for your help. ---