Confused about several issues with setting up cron
Tue Sep 24 18:37:00 GMT 2013
I would try the following methods:
First make sure you are launching your local terminal with "Runas
Administrator" checked, even if you are the Administrator user. I am
also asuming you have done the normal stuff like cygcheck -c, and make
sure you have not loaded duplicate dlls during your troubleshooting.
If you ever get resource fork issues with parent != child error
messages right in the term, that needs to be fixed by removing the
duplicate dll file. And run /bin/rebaseall from dash or ash terminals
Always manually right click and Run mintty as Administrator, also try
changing the path in the mintty shortcut to
% cygrunsrv -R cron
reboot to be on the safe side
After bootup use cygwin setup to uninstall cron, then run setup again
and install it.
You shouldn't need todo anything custom here, yes and defaults to
everything. It should be using your current user account, and that is
hopefully the full fledged Administrator account, and not some other
user with admin privs. Which also means you are currently logged into
windows as the full Administrator account.
% net start cron
% crontab -e
create an entry that just fires of something basic very frequently for instance
*/1 * * * * echo "this" > /cygdrive/c/Users/
You many also want to throw in the PATH into the crontab itself for example:
As alternative to or in addition to the mentioned test.file.txt
creation cron entry, you could use something like this:
@reboot echo "this" > /cygdrive/c/Users/Administrator/Desktop/test.file.txt
So that instead of something fireing off every minute for testing, it
would fire it off each time you stop/start the cron service with "net
stop cron" and "net start cron"
Sorry for the messy response, i have no time right now. Good luck
reading this email and getting it working. :)
On Sat, Sep 21, 2013 at 6:00 PM, KARR, DAVID <firstname.lastname@example.org> wrote:
> CYGWIN_NT-6.1 1.7.25(0.270/5/3) 2013-08-31 20:39 i686 Cygwin
> I want to set up a cron job, so I have to get cron configured. I'm trying to follow the instructions I can find, but I'm seeing several issues.
> I'm surprised that there's nothing in the user guide or the FAQ about setting up cron. I had to settle for the various questions about this on StackOverflow and others.
> I must have done something at least half correct, because I believe this tells me that cron is running:
> % cygrunsrv -L
> % cronevents
> 2013/09/20 21:14:06 [dk068x] crontab: PID 5924: (dk068x) LIST (dk068x)
> 2013/09/21 11:28:15 [dk068x] /usr/sbin/cron: PID 4980: (CRON) STARTUP (V5.0)
> 2013/09/21 11:28:16 [dk068x] cron: PID 8424: `cron' service started
> However, I then do "crontab <pathtomycrontabfile>", where "pathtomycrontabfile" is the path to my crontab file with the job I want to run. I then do "crontab -l" and it prints nothing. There is nothing in "/var/log/cron*".
> I did get some errors when I ran "cron-config", but I unfortunately lost that output.
> Problem reports: http://cygwin.com/problems.html
> FAQ: http://cygwin.com/faq/
> Documentation: http://cygwin.com/docs.html
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin