• 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
netstat launched from within Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

netstat launched from within Cocoa?


  • Subject: netstat launched from within Cocoa?
  • From: Lorenzo <email@hidden>
  • Date: Wed, 23 Apr 2003 17:56:26 +0200

Hi,
how could I launch the unix command "netstat" from within a Cocoa
application?

I already can launch other commands like "ls -l" using:

NSTask *task = [[NSTask alloc] init];
[task setLaunchPath:@"/bin/ls"];
NSArray *args = [NSArray arrayWithObjects:@"-1", myFolder, nil];
[task setArguments:args];
[task setStandardOutput:myPipe];
[task launch];

But now I cannot find the pathname of the command "netstat"
So, what should I call? How to do?

At the end, just to say, all I really need is to get the URL of a mounted
remote volume. And if the volume URL is Samba as "smb://1.2.3.4/VolumeName"
the other APIs don't work properly, so I have to workaround the problem
using netstat. But, where is the netstat file?

Best Regards
--
Lorenzo
email: email@hidden
_______________________________________________
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.

  • Follow-Ups:
    • Re: netstat launched from within Cocoa?
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: Re: Why are my menu items gray?
  • Next by Date: Re: netstat launched from within Cocoa?
  • Previous by thread: Re: Why are my menu items gray?
  • Next by thread: Re: netstat launched from within Cocoa?
  • Index(es):
    • Date
    • Thread