> $username = foo; > exec('/root/script.sh'.($username)); > > My script.sh file; > > #!/bin/tcsh > mkdir /root/$username shell script? Why not use PHP: http://php.net/function.mkdir