Hiya
I don't know Perl and I've got a bit of a problem.
I am calling Connect Direct from Perl to transfer a file from one machine to another.
I'm using:
(the stuff in "'s works OK) - but I'm trying to get a valid
return code)
The process below fails - but still returns "0". It should be returning "8".
$return_value = system("d:/Progra~1/CDNT/Direct -u cdgw3usr -p condir -x > $condir_out < $temp_file"
;
die "problem: $?" unless $return_value == 0;
I've also tryed:
$return_value = `d:/Progra~1/CDNT/Direct -u cdgw3usr -p condir -x > $condir_out < $temp_file`);
and
$return_value = `command -c d:/Progra~1/CDNT/Direct -u cdgw3usr -p condir -x > $condir_out < $temp_file`;
all above examples return "0" for both
$return_value
$?
Does anybody have any ideas.
Many thanks
Stuart Budd
Zurich Bank
I don't know Perl and I've got a bit of a problem.
I am calling Connect Direct from Perl to transfer a file from one machine to another.
I'm using:
(the stuff in "'s works OK) - but I'm trying to get a valid
return code)
The process below fails - but still returns "0". It should be returning "8".
$return_value = system("d:/Progra~1/CDNT/Direct -u cdgw3usr -p condir -x > $condir_out < $temp_file"
die "problem: $?" unless $return_value == 0;
I've also tryed:
$return_value = `d:/Progra~1/CDNT/Direct -u cdgw3usr -p condir -x > $condir_out < $temp_file`);
and
$return_value = `command -c d:/Progra~1/CDNT/Direct -u cdgw3usr -p condir -x > $condir_out < $temp_file`;
all above examples return "0" for both
$return_value
$?
Does anybody have any ideas.
Many thanks
Stuart Budd
Zurich Bank