Hi,
I just installed windows XP on my machine, and I was trying to figure out how to output the results of an execution to a file. For example:
check_execute("grep test testfile");
sub check_execute {
if (system("$_[0]") != 0)
{
print "failed execution";
print ($?>>8);
die "failed execution";
}
}
in unix, i could just use the '>' operator, but i have no idea how to do it in windows.
thanks
I just installed windows XP on my machine, and I was trying to figure out how to output the results of an execution to a file. For example:
check_execute("grep test testfile");
sub check_execute {
if (system("$_[0]") != 0)
{
print "failed execution";
print ($?>>8);
die "failed execution";
}
}
in unix, i could just use the '>' operator, but i have no idea how to do it in windows.
thanks