Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Thu, 10 Jun 2004 14:16:06 -0500
From: Mike Eggleston <mikee@mikee.ath.cx>
To: cygwin@cygwin.com
Subject: Re: cron: how to access network service/share
Message-ID: <20040610191606.GC10309@mikee.ath.cx>
References: <20040610185534.26793.qmail@web52306.mail.yahoo.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <20040610185534.26793.qmail@web52306.mail.yahoo.com>
User-Agent: Mutt/1.4.1i
Organization: The Math Forum
X-IsSubscribed: yes

On Thu, 10 Jun 2004, Gerry Reno wrote:

> I have a script that logs on to a SMB network service.  Something like:
> net use \\server\servicename password /user:xxxx
> 
> This script run fine from the users shell environment but I need this
> script to run at a specific time under cron.  I have tried several ways
> to get this running under cron.  I tried installing cron without
> declaring a specific --user.  Cron would run but whenever the script
> was scheduled to run it would generate a System 1312 error when trying
> to logon to the network service.  So I added the --user and --passwd
> options to the cygrunsrv --install command.  The user has
> admininstrator privileges so I expected that it could access the
> network service (this account can logon to the service in Explorer). 
> Cron runs and when my script runs it now generates a System 1069 error
> when trying to logon to the network service.  I've read through a whole
> bunch of cron postings today and I've seen that others have encountered
> similar problems also.  Has anyone found a solution to this
> predicament?   

Do you need to double the \'s?

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

