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 a few lines in C to halt the machine
when i require.

The problem is that i can't get comp working with that function... i made
and compiled with gcc a normal C executable file to halt the machine and
worked ok, but when i use comp i can't compile the component, there is a
problem with the stdlib.h library or something but i'm not sure.

The main thing is that i'm trying to halt the machine with an external
button and i'm trying to find the best solution.

Thanks again for your concern.

Best Regards.

Leonardo.

2009/11/14 Dave <[email protected]>

> 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 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 is to make a component using comp with one bit in
> pin,
> > and when that pin is true, the function system executes the sh command.
> >
> > Well i hope someone can clear my doubts to guide me in the right way.
> >
> > Thanks in advance again.
> >
> > Leonardo
> >
> > 2009/11/12 Leonardo Marsaglia <[email protected]>
> >
> >
> >> 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.
> >>
> >>
> >>
> >
> ------------------------------------------------------------------------------
> > Let Crystal Reports handle the reporting - Free Crystal Reports 2008
> 30-Day
> > trial. Simplify your report design, integration and deployment - and
> focus on
> > what you do best, core application coding. Discover what's new with
> > Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> > _______________________________________________
> > Emc-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/emc-users
> >
> >
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Emc-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/emc-users
>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to