NSTask not working for shell scripts?
NSTask not working for shell scripts?
- Subject: NSTask not working for shell scripts?
- From: Robert Staflin <email@hidden>
- Date: Tue, 3 Dec 2002 12:19:26 +0100
I'm trying to run shell scripts using NSTask. Even with the Apple
"Moriarity" example I can't run a shell script containing the one line
netstat -r
. All "built in" commands work. Does anybody know why? The app just
freezes when the task is launched.
What I want to do in the long run is have more complicated shell
scripts that handle all the information sorting etc, and then get the
result back to my app. I guess I could pipe around the data and use
multiple NSTasks from my app, but handling it in a shell scripts seems
easier right now. Help, please?
/Robert Staflin
==============================================
KRS Consulting
Robert Staflin
Jenny Linds vdg 75 Tel: +46 (18)
369425
S-756 50 UPPSALA Mobile: +46 (708) 369578
SWEDEN
_______________________________________________
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.