#!/usr/bin/perl -w print "Content-type: text/plain\n\n"; use CGI; my $query = new CGI; my $dir = $query->param('dir'); my $zip = $query->param('zip'); ## Here is the commands that wont work cd $dir unzip $zip ## Here i can print them...just fine print $dir; print $zip;