problem with smbumount and cron

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I've got the following simple script which copies a file thru samba between 
two linux machines. The script is executed within cron:

#!/bin/bash
FILE_NAME=/vol1/sys/tmp/fatturato.html
SHARE=web_privato
IP=192.168.1.7
MOUNT_POINT=/mnt/firewall

/usr/bin/smbmount //${IP}/${SHARE} ${MOUNT_POINT} -o ip=${IP},guest
if test $? -eq 0
then
    cp ${FILE_NAME} ${MOUNT_POINT}
    /usr/bin/smbumount ${MOUNT_POINT}
fi

Nevertheless, the mount point is never unmounted if the script runs thru cron, 
while it is rightly unmounted if launched by an interactive user. I'm running 
it on a redhat 6.2 and a suse 9.0 with the same problem. Any thoughts?

Luca

-- 
Luca Ferrari,
fluca1978@xxxxxxxxxxx
-
: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Newbie]     [Audio]     [Hams]     [Kernel Newbies]     [Util Linux NG]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Device Drivers]     [Samba]     [Video 4 Linux]     [Git]     [Fedora Users]

  Powered by Linux