Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Piping terminal commands?

Piping terminal commands?
Thread Tools
Mac Elite
Join Date: Oct 2000
Status: Offline
Reply With Quote
Apr 13, 2002, 02:14 AM
 
Can someone please help?? Here is what I want to do:

/sbin/mount | awk '/(idisk.mac.com|afp_)/ {n=split($3, parts, "/" ) ; print parts[n] ; }'


That returns a list of iDisk (accurate 90% of the time). But I really can't get the piping example on cocoadevcentral, can someone please tell me how to adapt this so that string is the output of the above command? Thanks A LOT for any help
     
Fresh-Faced Recruit
Join Date: Mar 2002
Status: Offline
Reply With Quote
Apr 19, 2002, 04:44 AM
 
Synotic,

Still looking for an answer?
I'll think i have a working example of something similar.

When i have some time i'll make you a example.app

Cheers
     
Synotic  (op)
Mac Elite
Join Date: Oct 2000
Status: Offline
Reply With Quote
Apr 19, 2002, 09:43 PM
 
Originally posted by Cocoala:
<STRONG>Synotic,

Still looking for an answer?
I'll think i have a working example of something similar.

When i have some time i'll make you a example.app

Cheers</STRONG>
Actually, yes, that would be great! It's not imperative.. but I'd really like to port all of my app to Cocoa. The only part remaining requires that I call that command via Cocoa (as Cocoa can't call AppleScript :/). TIA
     
Fresh-Faced Recruit
Join Date: Mar 2002
Status: Offline
Reply With Quote
Apr 20, 2002, 08:58 AM
 
Synotic,

Hope this is what you are looking for
Pipe sample code

Cocoala
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 09:44 AM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2