PHP: <?php shell_exec("cd destination_directory; gunzip {$filename}| tar xf -;"); ?> http://ua.php.net/shell_exec