Quote:
Originally Posted by grail
What is your 'problem'?
Are you getting an error?
You will need to provide more information if you wish assistance.
Currently my only suggestion to help you debug is to place set -xv at the start of the script and check the output it delivers.
|
LOGFILE="/var/log/vpnc/filetransfer.log"
#Grab the Drivespace
if ( /bin/cp -rf "$LOCATION/$FILE" /mnt/smb/"$DESTINATION" 2>> $LOGFILE > /dev/null ); then
echo -n 'date' >> $LOGFILE && echo "Files are being copied." >> $LOGFILE
else
# check the drive space.
a=$(df -h /mnt/smb | tail -n +3 | tr -s ' ' | tr '%' ' ' | cut -d ' ' -f 5)
echo $a
if [[ $a -ge 54 ]]; then
cat /etc/diskspace/text.txt | sendmail test@gmail.com
fi
Here is the part of my script and underline part of this script is added now and this is making error..
And here are some error which i took it from logfile.
Error FROM LOGFILE
/bin/cp: cannot create symbolic link `/mnt/smb/etc/rc4.d': Operation not supported
/bin/cp: cannot create symbolic link `/mnt/smb/etc/favicon.png': Operation not supported
/bin/cp: cannot create symbolic link `/mnt/smb/etc/redhat-release': Operation not supported
/bin/cp: cannot create symbolic link `/mnt/smb/etc/system-release': Operation not supported
/bin/cp: cannot create symbolic link `/mnt/smb/etc/rc6.d': Operation not supported
/bin/cp: cannot create symbolic link `/mnt/smb/etc/ssl/certs': Operation not supported
/bin/cp: cannot create symbolic link `/mnt/smb/etc/sysconfig/network-scripts/ifup': Operation not supported
/bin/cp: cannot create symbolic link `/mnt/smb/etc/sysconfig/network-scripts/ifup-isdn': Operation not supported
/bin/cp: cannot create symbolic link `/mnt/smb/etc/sysconfig/network-scripts/ifdown-isdn': Operation not supported
/bin/cp: cannot create symbolic link `/mnt/smb/etc/sysconfig/network-scripts/ifdown': Operation not supported