Re: Cygwin problem with cron and networked drives
- From: "ambroze" <ambroze@xxxxxxxxxxx>
- Date: 29 Jun 2006 11:53:36 -0700
Yeah, I figured that I was possibly in the wrong group. AGAIN, I cannot
find a group for CYGWIN. I appreciate your attempt to help but if
someone doesn't know anything about the emulator I'm using please don't
reply - especially with comments referring to that fact that I'm in the
wrong group or that I'm not providing enough information. Let me try to
explain again.
I am using CYGWIN (UNIX emulator) installed on a XP machine (for some:
don't say anything about installing a 'real' operating system -
b/c this is what I have to work with) and I have cron installed and
running as a service under my local user account. I have access
permissions to all of the mapped drives. CYGWIN can see the mapped
drives from the command line. BUT, when I run a script that needs one
of the mapped drives that is being called from cron, it cannot find the
mapped drives. This is a problem at my work (where I need it) and we're
on a large network and the same problem exists on my home PC with a
mapped drive to another PC in my home.
Please if you know nothing about CYGWIN, please do not reply. I'm
getting tried of a bunch of smart asses that like to act superior over
others. Just don't click that reply button. Thanks!
Dale Dellutri wrote:
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: Dale Dellutri
- Re: Cygwin problem with cron and networked drives
- References:
- Cygwin problem with cron and networked drives
- From: ambroze
- Re: Cygwin problem with cron and networked drives
- From: Dale Dellutri
- Cygwin problem with cron and networked drives
- Prev by Date: Re: Cygwin problem with cron and networked drives
- Next by Date: PXE Install Question
- Previous by thread: Re: Cygwin problem with cron and networked drives
- Next by thread: Re: Cygwin problem with cron and networked drives
- Index(es):