This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

network resources from within cron job??


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]