This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
network resources from within cron job??
- To: "'cygwin at cygwin dot com'" <cygwin at cygwin dot com>
- Subject: network resources from within cron job??
- From: Lou Rayman <LRayman at REDTOP dot COM>
- Date: Thu, 1 Nov 2001 14:34:37 -0500
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@redtop.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/