• 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
NSTask not working for shell scripts?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.
  • Follow-Ups:
    • Re: NSTask not working for shell scripts?
      • From: Yann Bizeul <email@hidden>
  • Prev by Date: Re: NSFontPanel again
  • Next by Date: Re: NSTask not working for shell scripts?
  • Previous by thread: Re: NSFontPanel again
  • Next by thread: Re: NSTask not working for shell scripts?
  • Index(es):
    • Date
    • Thread