netstat launched from within Cocoa?
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.