Try this: go to your directory with all G code functions etc (program_prefix).

Then:

(
  echo '#!/bin/bash'
  echo 'echo date > /tmp/M156'
) > M156
chmod 755 M156

then call M156 from EMC2

Then look at file /tmp/M156



On Sat, Oct 2, 2010 at 8:57 PM, Mike Cinquino <mcinqu...@gmail.com> wrote:
> Hello, I am having a problem getting a custom M101 to work. I building a
> custom tool changer and I am controlling it with an arduino board. I need to
> send a BCD signal over a spare parallel port. I have a C program that
> accomplishes this and I can make it work by running it from a terminal. I do
> however need to run it with sudo. Because of this I also tried a bash script
> that called the C program and got the same result (no response). Both work
> from the command line.  I get no errors from EMC2. The spare port is not
> used by EMC2. It is actually the port on the mother board. My machine is
> running off a PCI parallel port card. The files are also in the appropriate
> directory.
>
> I have entered a echo command in the bash script that is shown when I run it
> from the command prompt. When run from EMC2 should it appear in a terminal
> window?
>
> I realize I could use classic ladder to accomplish this as well but I don't
> see why this is not working?
>
> Any help would be greatly appreciated.
>
> Thanks,
> Mike
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to