#70 check_by_ssh -H hostname:port

open
nobody
None
5
2012-04-16
2012-04-16
beneford
No

It would be really useful to allow:
check_by_ssh -H hostname:port
rather than having to specify hostname and port in separate parameters
check_by_ssh -H hostname -p port

The code changes are minimal and can be localised to the process_arguments case statement
check_by_ssh.c line 225:
[begin]
case 'H': /* host */
if (p1=strstr(optarg,":"))
*p1=0; // terminate the host-name
host_or_die(optarg);
hostname = optarg;
if (!p1)
break;
optarg=p1+1; // Set port number as next param and
// fall through to process the port...
case 'p': /* port number */
[end]

Discussion

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks