• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSTask...Whois
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Prev by Date: Re: NSTask...Whois
  • Next by Date: Re: Matching Postal Addresses (resolved)
  • Previous by thread: RE: NSTask...Whois
  • Next by thread: Xcode - Other Linker
  • Index(es):
    • Date
    • Thread