in reply to exit value in tar command

Is there a reason why you must run the tar command inside the ksh-script? Wouldn' it be better to run the tar command directly from Perl or perhaps even use the Archive::Tar module?

Update: If all you want to do is to make a recursive copy of a directory, File::Copy::Recursive is a good alternative.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics