Given string to exec is invalid. http://gambasdoc.org/help/lang/exec?v3
shell "sudo sh -c 'echo out /sys/class/gpio/gpio27/direction'" Why this would do anything? sudo is without any input, unnecessary "sh -c" and then command which output should be "out /sys/class/gpio/gpio27/direction". If you want to put word "out" to file, you need to use direction. Example "echo out > /sys/class/gpio/gpio27/direction". I don't think your command works in terminal either. Maybe you want to do something like this: "gksudo echo out > /sys/class/gpio/gpio27/direction" ? Jussi On Mon, Dec 2, 2013 at 1:28 PM, Mike Crean <mike.cr...@y7mail.com> wrote: > Hey boys, I am trying to emulate the terminal string sudo sh -c > 'echo out /sys/class/gpio/gpio27/direction' (works OK in terminal, on > BBB wheezy arm lxde) I run this from gambas3.5.90 Exec [system.shell, > "sudo sh -c 'echo out /sys/class/gpio/gpio27/direction'"] > and get an error /bin/sh: 0: Can't open sudo sh -c 'echo out > /sys/class/gpio/gpio27/direction' any help please. > > I > have also tried shell "sudo sh -c 'echo out > /sys/class/gpio/gpio27/direction'" this runs with out error and > but will not change data in the direction file. It stays at the old > value of "in". > > If > I run it from a terminal the string works fine. > > Thanks > in advance > Mike > > ------------------------------------------------------------------------------ > Rapidly troubleshoot problems before they affect your business. Most IT > organizations don't have a clear picture of how application performance > affects their revenue. With AppDynamics, you get 100% visibility into your > Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics > Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk > _______________________________________________ > Gambas-user mailing list > Gambas-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gambas-user > ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user