Piping shell scripts
Piping shell scripts
- Subject: Piping shell scripts
- From: Andrew Merenbach <email@hidden>
- Date: Sun, 14 Jul 2002 23:09:09 -0700
I would like to execute the following shell script:
echo 'scale=10;7/3'|bc
... which pipes the phrase in quotes to the calculator program bc.
Unfortunately, though, all I get is this:
'scale=10;7/3'|bc
as my result. Is it possible to do this with Objective-C?
(BTW, I can definitely divide seven by three in the code itself; rather,
this program will allow the division equation to be changed by the user.)
Take care,
Andrew Merenbach
_______________________________________________
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.