Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 To: "'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) Content-Type: text/plain; charset="iso-8859-1" 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 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/