Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!sdd.hp.com!ucsd!ucbvax!ccfiris.aedc!c60244 From: c60244@ccfiris.aedc (Kenny McDonald) Newsgroups: comp.sys.sgi Subject: using stdin & stdout in a Shell-Script or C-prog Message-ID: <9101211514.AA09237@ccfiris.aedc> Date: 21 Jan 91 15:14:54 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 28 I am trying to do the following: cd bs; tar cxvBf - . | (cd ../bs2; tar xpvoBf -) -or- rsh host2 "(cd bsdir; tar cvBf - .)" | (cd todir; tar -xpoBf -) I want to xeq this command in a c program. But the use of stdout/stdin is not correct. Is there any suggestions anyone can give me on the correct way to call this sequence of commands within a c-program? Thanks. vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv | Kenneth M. McDonald * Arnold Engineering Development Center | | MS 100 * Arnold AFS, TN 37389-9998 * (615) 454-3413 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ OO AA OO O O A A O O O O AAAA O O O O A A O O OO A A OO _______________ / vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvRETURN ADDRESS:vvvvvvvvvvvvvvvvvvvvvvvvvvvv | @aedc-vax.af.mil:c60244@ccfiris.aedc | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^