www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/06/10/14:55:51

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <20040610185534.26793.qmail@web52306.mail.yahoo.com>
Date: Thu, 10 Jun 2004 11:55:34 -0700 (PDT)
From: Gerry Reno <grenoml AT yahoo DOT com>
Subject: cron: how to access network service/share
To: cygwin AT cygwin DOT com
MIME-Version: 1.0
Note-from-DJ: This may be spam

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?   



=====
Gerry Reno
mailto: grenoml at@ yahoo dot. com
(if mail bounces please retry later - spam rapidly fills up mailbox)

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019