• 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: Oliver Donald <email@hidden>
  • Date: Thu, 13 Nov 2003 16:03:18 -0000

I think you need 'nil' at the end of the arrayWithObjects call:

[whois setArguments:[NSArray arrayWithObjects:@"-h
whois.nic.uk",@"realmacs.co.uk", nil]];


hope that helps!
oli

-----Original Message-----
From: Mark Davis [mailto:email@hidden]
Sent: 13 November 2003 15:19
To: email@hidden
Subject: NSTask...Whois


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.


DISCLAIMER: The information contained in this e-mail is confidential and may
be privileged. It is intended for the addressee only. If you are not the
intended recipient, please delete this e-mail immediately. The contents of
this email must not be disclosed or copied without the sender's consent. We
cannot accept any responsibility for viruses, so please scan all
attachments. The statements and opinions expressed in this message are those
of the author and do not necessarily reflect those of the company. The
company does not take any responsibility for the views of the author.
_______________________________________________
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: NSTask...Whois
  • Previous by thread: Re: NSTask...Whois
  • Next by thread: Re: NSTask...Whois
  • Index(es):
    • Date
    • Thread