hi folks,
I’m trying to understand what’s happening here
in the open event of a new app project :
Dim theShell As New Shell
dim ch as String
theShell.Mode = 0
ch = "nmap -PN -p " + str(5432) + " " + "192.168.152.50" // or any ip existing in your network
theShell.Execute ch
Do
App.DoEvents(25) // keep your GUI active while waiting on the shell
Loop Until Not theShell.IsRunning
MsgBox theShell.Result
running this, I get an error :
bash: nmap: command not found
if I type the command in the terminal, I get this (good) result :
macbookpro-jyp:~ jeanyves$ nmap -PN -p 5432 192.168.152.50
Starting Nmap 7.12 ( https://nmap.org ) at 2018-06-11 10:50 CEST
Nmap scan report for 192.168.152.50
Host is up (0.0059s latency).
PORT STATE SERVICE
5432/tcp closed postgresql
Nmap done: 1 IP address (1 host up) scanned in 0.16 seconds
what did I miss ?
thanks.