Hi
I use shl_StdOut to receive data from "sudo nodejs server.js". server.js is a mini webserver. when i running "exceute", it run in background. it has some showing message but shl_StdOut can't receive them. Why ? Where am i missing ?
Code:
Sub Execute As Boolean
If Not(ProcessIsRunning("nodejs server.js")) Then
Dim sh As Shell
sh.Initialize("shl", "sudo", Array As String("nodejs","server.js"))
sh.WorkingDirectory="/home/pi/OpenPLC_v2"
sh.Run(-1)...
from B4X Community - Android, iOS, desktop, server and IoT programming tools http://ift.tt/295bEmR
via IFTTT
Aucun commentaire:
Enregistrer un commentaire