Re: NSTask...Whois
Re: NSTask...Whois
- Subject: Re: NSTask...Whois
- From: Rainer Brockerhoff <email@hidden>
- Date: Thu, 13 Nov 2003 14:50:56 -0200
>
From: Mark Davis <email@hidden>
>
Date: Thu, 13 Nov 2003 11:18:39 -0400
>
>
In the Terminal I can type this in and it gets me my whois information:
>
whois -h whois.nic.uk realmacs.co.uk
>
>
When I use it through NSTask,
>
>
[whois setArguments:[NSArray arrayWithObjects:@"-h
>
whois.nic.uk",@"realmacs.co.uk"]];
>
>
it returns a message saying:
>
>
usage: whois [-aAdgilmQrR6] [-c country-code | -h hostname] [-p port]
>
name ...
[whois setArguments:[NSArray arrayWithObjects:@"-h",
@"whois.nic.uk",@"realmacs.co.uk",nil]];
One string for each parameter... and a nil at the end to terminate the list of objects.
--
Rainer Brockerhoff <email@hidden>
Belo Horizonte, Brazil
"It's extremely unlucky to be superstitious, for no other reason
than it is always unlucky to be colossally stupid." (Stephen Fry)
http://www.brockerhoff.net/ now with forums for XRay, Zingg! et al.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.