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!
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!