This is the mail archive of the cygwin 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]
Other format: [Raw text]

Re: Help : can not get cron work


On Tue, 10 Jan 2006, lin q wrote:

> > Isn't 'H' a network drive?  That is probably your problem -- read
> > <http://cygwin.com/faq/faq.using.html#faq.using.shares>.
>
> Thanks, I think you are right, after check out this page, I think it is
> the problem.
>
> But I wonder how we can do it.

Well, for one thing, the only reason you need H: is because your home
directory is on it.  You can have a home directory on a local drive
instead, so that it's accessibe to services (you can then create a
symbolic link from your home directory to the network drive).

> There are 3 suggestions over there,
> 1) using public network share that does not require authentication (for
> non-critical files)
> 2) providing your password to a net use command
> 3) running the service as your own user with cygrunsrv -u
>
> But 1) does not apply here in my environemnt.

Ok.

> 2), I do not quite understand it. And I think I can not use it either. I
> tried "net use H: *" trying to set up the password, but it errors out on
> syntax.

That's because "net use" expects the full path to the share as part of the
command (if you want to attach to it).  So, just figure out what share H:
is referring to (say, \\server\SHARE), and then issue the following
command:

net use H: '\\server\SHARE' '*'

(the quoting is for bash -- I think you can omit it at the DOS prompt).

> 3), In the very beginning I used cygrunsrv command to start cron, but
> there is some problem. And earlier in this thread I was suggested to use
> cron-config. Actually below are the screenshot of my running
> cron-config, you can see that it specifically asked me whether to setup
> the service as my own,
>
> $ /usr/bin/cron-config
> Cron is already installed as a service under account XLNX\jibinh.
> Do you want to remove or reinstall it? (yes/no) yes
> OK. The cron service was removed.
>
> Do you want to install the cron daemon as a service? (yes/no) yes
> The service can run either as yourself or under a privileged account.
> Running as yourself allows better access to network drives,
> but does not allow to run the crontab of other users.
> Do you want to the cron daemon to run as yourself? (yes/no) yes
>
> Do you want the daemon to run with ntsec? (yes/no) yes
>
> Please enter the password for user 'linq': ******
> Reenter: ******
>
> WARNING: /usr/sbin/sendmail should point to an executable mailer
>     such as ssmtp or exim.
>
> Do you want to start the cron daemon as a service now? (yes/no) yes
> OK. The cron daemon is now running.
>
> In case of problem, examine the log file for cron,
> /var/log/cron.log, and the Windows event log
> for information about the problem cron is having.
>
> If you cannot fix the problem, then report it to cygwin@cygwin.com.
> Please include a copy of your crontab, ('crontab -l')
> and the output of 'cygcheck -srv > cygcheck.txt'.
>
> Please include the generated file 'cygcheck.txt' *as an attachment*,
> and NOT in the body of the mail message.

Umm, okay, this seems to have completed successfully.  Is cron now
running?  Does the simple "hello world" example work?  What error does
your original rsync command give in this case?
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_	    pechtcha@cs.nyu.edu | igor@watson.ibm.com
ZZZzz /,`.-'`'    -.  ;-;;,_		Igor Peshansky, Ph.D. (name changed!)
     |,4-  ) )-,_. ,\ (  `'-'		old name: Igor Pechtchanski
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Las! je suis sot... -Mais non, tu ne l'es pas, puisque tu t'en rends compte."
"But no -- you are no fool; you call yourself a fool, there's proof enough in
that!" -- Rostand, "Cyrano de Bergerac"


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


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