Re: NSTask...Whois
Re: NSTask...Whois
- Subject: Re: NSTask...Whois
- From: Robert Tillyard <email@hidden>
- Date: Thu, 13 Nov 2003 16:35:36 +0000
Shouldn't this be:
[whois setArguments:[NSArray arrayWithObjects:
@"-h",
@"whois.nic.uk",
@"realmacs.co.uk"]];
I think it's treating "-h whois.nic.uk" as one argument.
Regards, Rob.
On 13 Nov 2003, at 3:18 pm, Mark Davis wrote:
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 ...
Any idea why this isn't working?
_______________________________________________
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.