J
joe
Dear Gurus,
I got stuck at the following. I've tried running a UNIX command in my Perl
CGI-script, but it doesn't work the way I expected it to. When I run the
next line:
$ls = `ls > file.txt`; or
system("ls > file.txt");
everything is ok. So running a UNIX command is not a problem an sich. But
when I run something like:
$ls = `man perl > file.txt`; or
system("mysqldump --user=username --password='password' dbname tablename >
file.txt");
an empty text-file is the result. How come? I'm a verry happy man already
knowing someone can help me out.
TIA
Joe
I got stuck at the following. I've tried running a UNIX command in my Perl
CGI-script, but it doesn't work the way I expected it to. When I run the
next line:
$ls = `ls > file.txt`; or
system("ls > file.txt");
everything is ok. So running a UNIX command is not a problem an sich. But
when I run something like:
$ls = `man perl > file.txt`; or
system("mysqldump --user=username --password='password' dbname tablename >
file.txt");
an empty text-file is the result. How come? I'm a verry happy man already
knowing someone can help me out.
TIA
Joe