Cygwin problem with cron and networked drives



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?

.



Relevant Pages

  • Re: changing crons From: address in emails
    ... I know cron runs as the user, ... Then everything you print out in the script will be captured as the body ... warnings about forgery in the mail headers if the userid the script runs ... Why not just echo `hostname` as the first line of every script? ...
    (freebsd-questions)
  • SUMMARY: cron entry: nth day of every month?
    ... cron can not handle this with its own syntax. ... 21st but "command" only runs if the output of the "date" command ... What I would suggest is rather than embedding the logic in each script ... The answer is it is _not_ possible to control it only with crontab ...
    (Tru64-UNIX-Managers)
  • Re: Cron Jobs
    ... > having a cron will mean yo server is forced by the script ... > best than allowing mail dequeing by connection. ... > host server so I can get emails for my domain example.com. ...
    (RedHat)
  • [Solved] Long cronjobs terminate after 2 minutes/Ubuntu 8.10
    ... When I run the script in the foreground, it takes about 2 hours to ... Have you got your system set up so that cron sends mail to ... I configured Postfix for local mail only and updated ... I'm assuming that configuring the MTA is what did it. ...
    (Ubuntu)
  • Re: Silent Cron Jobs
    ... afaik cron mails all output from a script. ... cronjob I usually dump all stdout ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)