From: Luca Ferrari <fluca1978@infinito.it>
To: linux-admin@vger.kernel.org
Subject: problem with smbumount and cron
Date: Tue, 3 Aug 2004 09:52:22 +0200 [thread overview]
Message-ID: <200408030952.22288.fluca1978@infinito.it> (raw)
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@infinito.it
reply other threads:[~2004-08-03 7:52 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200408030952.22288.fluca1978@infinito.it \
--to=fluca1978@infinito.it \
--cc=linux-admin@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).