[comp.sys.sgi] using stdin & stdout in a Shell-Script or C-prog

c60244@ccfiris.aedc (Kenny McDonald) (01/21/91)

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		   |
  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^