B4J Question jshell excute echo not working

jinyistudio

Well-Known Member
Licensed User
Longtime User
Hi
It working in rpi3 when i run "echo 1 > /dev/sys-led" in the command line.
following code it can't working but ProcessCompleted is success when i run it in my b4j no-ui-app but jshell o_O
B4X:
Dim lst As List
lst.Initialize2(Array As String($"'${jylab.IIF(sysledst,1,0)}'"$,">","/dev/sys-led"))
Dim shl As Shell
shl.Initialize("gpio","echo",lst)
shl.Run(-1)
sysledst = Not(sysledst)
 

jinyistudio

Well-Known Member
Licensed User
Longtime User
Ha. It is OK šŸ¤—
B4X:
File.WriteString("/dev","sys-led",jylab.IIF(sysledst,"1","0"))
 
Upvote 0
Top