Hi, I have an issue where i got stuck any help is greatly appreciated. I have a script which runs fine in unix but in red hat linux when i run the same script it says
#Verify temp directory
if [[ -d $8 ]]; then
REMOTE_DIR_LIST=`mktemp -d /tmp`
LOCAL_DIR_LIST=`mktemp -d /tmp`
TEMP_FILE=`mktemp -d /tmp`
else
echo "Invalid temp dir [$8]"
return 1
fi
log
mktemp: cannot make temp dir /tmp: File exists
mktemp: cannot make temp dir /tmp: File exists
mktemp: cannot make temp dir /tmp: File exists
ftpmput.sh: line 78: $TEMP_FILE: ambiguous redirect
ftpmput.sh: line 80: $TEMP_FILE: ambiguous redirect
ftpmput.sh: line 82: $TEMP_FILE: ambiguous redirect
ftpmput.sh: line 84: $TEMP_FILE: ambiguous redirect
ftpmput.sh: line 86: $TEMP_FILE: ambiguous redirect
ftpmput.sh: line 88: $TEMP_FILE: ambiguous redirect
ftpmput.sh: line 90: $TEMP_FILE: ambiguous redirect
ftpmput.sh: line 95: $TEMP_FILE: ambiguous redirect
ftp command failed!\n
rm: missing operand
Try `rm --help' for more information.
ftpmput.sh: line 106: $LOCAL_DIR_LIST: ambiguous redirect
Please can anyone help me with this Thanks in advance