delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-ID: | <768B9AAAE64FD5118E2600B0D022BFDB04496E@HOMEPLATE> |
From: | Lou Rayman <LRayman AT REDTOP DOT COM> |
To: | "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com> |
Subject: | network resources from within cron job?? |
Date: | Thu, 1 Nov 2001 14:34:37 -0500 |
MIME-Version: | 1.0 |
X-Mailer: | Internet Mail Service (5.5.2650.21) |
I need to set up a cron job that has access to a network share. It looks something like this: net use z: \\\\computer\\share passwd /user:zzzz /persistant:no <a program that accesses z:> net usr z: /delete the shell script runs fine under bash. but from within cron I get: System Error 1312 A specified logon session does not exist. It may already have been terminated. I guess this is because cron is running under the local system account, which has no "logon" session. I tried setting up the cron service to run under the host's Administrator account, but that gives me a error: seteuid: not owner can anyone help me???? -- Lou Rayman lrayman AT redtop DOT com Senior Engineer www.redtop.com The Redtop Company, LLC -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |