/cygdrive/f/ missing when my script is executed by cron

Corinna Vinschen corinna-cygwin@cygwin.com
Thu Mar 29 11:37:00 GMT 2012


On Mar 29 11:59, Stéphane Klein wrote:
> Le 29/03/2012 11:16, Corinna Vinschen a écrit :
> >>But, I've have an issue : when my bash script is executed by cron,
> >>it hasn't access to /cygdrive/f/, this device isn't mounted !
> >
> >Remote shares are mounted on a per user-session basis.  Cron as a
> >service is not running in your desktop user-session.  If you want
> >to access remote shares in your cron session, you have to mount them
> >explicitely in your cron job.
> 
> Thanks.
> 
> Do you have command example or document reference about this command
> (mount remote shares from my bash script) ?

  $ net use '/?'


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list