Try adding the full path to chmod or cat.

On 8/5/2016 5:00 PM, bugtrac...@gambaswiki.org wrote:
> http://gambaswiki.org/bugtracker/edit?object=BUG.973&from=L21haW4-
>
> Comment #2 by vuott VUOTT:
>
>> Desktop.RunAsRoot requires the command to be written between the brackets.
> Yes, I know it.
>
>
> If I try this:
>
> Public Sub Button1_Click()
>
>    Desktop.RunAsRoot("chmod 666 /dev/tty1")
>
> End
>
>   or e.g.:
>
> Public Sub Button1_Click()
>
>    Desktop.RunAsRoot("cat /dev/input/mouse0")
>
> End
>
>
> I get that error message:
> "File or directory doesen't exist."
>
> vuott VUOTT changed the state of the bug to: Opened.
>
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user



------------------------------------------------------------------------------
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to