On 30/06/06, Fyodor <[EMAIL PROTECTED]> wrote:

I can kind-of see your point.  On the other hand, Nmap completed
successfully and returned the results (the host was down).  Nmap
returns nonzero when there is an error and Nmap cannot complete.  If
Nmap was to return nonzero in your case, what should it do if you scan
two machines and one machine is up and another is down?  What if you
scan two and they are both down?

If the RC is nonzero based on
whether hosts scanned are up or down, how do we inform the script that
Nmap encountered an error and failed to complete?

The only way I can think of is to use different non-zero return codes.
It would add a bit of extra flexibility to nmap, but it depends if
anyone actually cares (even I'm not that bothered, as I can always
grep the output.)

Feel free to close this if you don't think it's worth the effort.
Thanks for nmap :-)


George.


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to