Todd Pasley wrote: > Use ; instead of | > > e.g. > > shell_exec("cd /change/to/dir; tar cvf /place/for/backup.tar files");
Or, if you only want tar to execute after changing directories has succeeded, use && instead of | e.g. shell_exec("cd /change/to/dir && tar cvf /place/for/backup.tar files"); Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php