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

Re: NSTask not working for shell scripts?


  • Subject: Re: NSTask not working for shell scripts?
  • From: Yann Bizeul <email@hidden>
  • Date: Tue, 3 Dec 2002 13:22:53 +0100

Perhaps you could copy/paste the lines creating the NSTask to your shell script.
Take a look to the console to see if there is any output (file not found or things like that)


Le mardi, 3 dic 2002, ` 12:19 Europe/Paris, Robert Staflin a icrit :

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.


--
Yann Bizeul
TYNSOE.ORG - http://www.tynsoe.org/
Site technique consacri ` MacOS X
_______________________________________________
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: Robert Staflin <email@hidden>
References: 
 >NSTask not working for shell scripts? (From: Robert Staflin <email@hidden>)

  • Prev by Date: NSTask not working for shell scripts?
  • Next by Date: Thanks (was: NSTextField & controlTextDidChange:)
  • Previous by thread: NSTask not working for shell scripts?
  • Next by thread: Re: NSTask not working for shell scripts?
  • Index(es):
    • Date
    • Thread