Families Laws wrote: > > I tried to do a change directory and then do a tar of > the directory: > > My program: > > system("cd /usr/apps");
Like Jeff told, use the chdir function (perldoc -f chdir) > You should always check the return value of the system command. Note that return 0 is O.K., and every other value is an error: system("tar -cf tarfile.tar DDA/*") and print "Error occurred: $!" But the best is to use an existent module: Look for the CPAN module Archive::Tar or Archive::Any Greetings, Andrea -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]