New to B4J!
Need to check a specific service is running,
Dim shl_DHCP As Shell
shl_DHCP.Initialize("shl_DHCP", "sudo ", Array As String("service", "--status-all","|", "grep","isc-dhcp-server","|","grep","+"))
shl_DHCP.Run(10000) 'set a timeout of 10 seconds
I am getting errors until I remove from (and including) the first pipe?
Any thoughts on how to get round this much appreciated!
Sorry, ended up using a work around, as i could retrieve all running services fine i did that put them into a list and then went through the list to check it was running!