I inherited an perl script and trying it now on an Linux.
I have this command,
my $c = "$CONFIG_FILE.completed";
write_log "Moving to Done: $c\n";
chomp(my $qxout=qx(mv -t $DONE_DIR $c 2>&1));
logNdie "$PROGNAME: ERROR: Move to Done FAILED($?) for $c (output='$qxout')\n" if $?;
where $DONE_DIR = /pvc/ohdr/topology
But it fails to recognize the t option
I get
ohdr_cucp_sip_fix_04132022.pl: ERROR: Move to Done FAILED(256) for SIP_CUCP_FILES_VNISIPSUCCESS_20220414132902_1.cnfg.completed (output='mv: unrecognized option: t
Any solution?