Re: Cygwin problem with cron and networked drives
- From: Dale Dellutri <ddelQQQlutr@xxxxxxxxxxxx>
- Date: Thu, 29 Jun 2006 17:57:24 +0000 (UTC)
On 28 Jun 2006 07:54:43 -0700, ambroze <ambroze@xxxxxxxxxxx> wrote:
I have a directory on the network (/cygdrive/f/MD408/out) that is not
recognized when I add a script in cron. If I run this script from the
command line it is recognized.
It's only when it is a mapped network drive (f), it I change it to the
local drive (c) it will work fine.
Here is my cron example:
20 09 * * * exec /cygdrive/c/working/bin/test.sh
Here is the script example of test.sh
-------------------------------------------------------------------
if [ -d /cygdrive/f/MD408/out ];then
echo "Found $outdir"
else
echo "NOT Found $outdir"
fi
-------------------------------------------------------------------
Any thoughts anyone?
Is the command line version that works running on a Linux system or an
MS Windows system?
Is the cron job running on a linux system or an MS Windows system?
Is the mapped network drive /cygrive on a linux system or an
MS Windows system?
Is the connection to the network drive via SMB (SAMBA) or NFS or
something else?
It's impossible to guess the problem without answers to these
questions.
I bet that all of the various systems involved are MS Windows systems
but using Cygwin on the executing system. In this case, you're in
the wrong newsgroup.
Probably the resolution will have something to do with the different
capabilities of the user running the command line version that works,
versus the user running the cron job.
In the future, please give more info.
--
Dale Dellutri <ddelQQQlutr@xxxxxxxxxxxx> (lose the Q's)
.
- Follow-Ups:
- Re: Cygwin problem with cron and networked drives
- From: ambroze
- Re: Cygwin problem with cron and networked drives
- References:
- Cygwin problem with cron and networked drives
- From: ambroze
- Cygwin problem with cron and networked drives
- Prev by Date: Re: multiple ppp links and routing ..
- Next by Date: Re: Cygwin problem with cron and networked drives
- Previous by thread: Re: Cygwin problem with cron and networked drives
- Next by thread: Re: Cygwin problem with cron and networked drives
- Index(es):
Relevant Pages
|