cpio in shell called from php

I have a php program that calls a shell script, this part works fine and most of the commands work. However, I have a cpio command in the shell script, and for some reason this doesn't work. If I catch the return code, it's 1 which means it terminated with an error, but I get no other indication of an error in php or the shell. Has anyone done this before?
I'd really appreciate any help I can get.

Monica

Does the CPIO task take a longer time to execute relative to the PHP routine?

no, it dies immediately... I'm thinking it might be a permissions problem, I'll post back in a few.
Thanks :slight_smile:

I got it to work! The problem is that I was trying to read/write into a directory that is out of my cgi-bin path, and I guess that makes them unreachable to php. I also didn't have all my permission bits open. I corrected all that and now it runs fine.
Thanks anyway!

Monica