How to run cron service in cygwin? Announcing the arrival of Valued Associate #679: Cesar...
Keep at all times, the minus sign above aligned with minus sign below
Problem with display of presentation
How do you write "wild blueberries flavored"?
Why do C and C++ allow the expression (int) + 4*5?
Dinosaur Word Search, Letter Solve, and Unscramble
Shimano 105 brifters (5800) and Avid BB5 compatibility
Proving that any solution to the differential equation of an oscillator can be written as a sum of sinusoids.
Inverse square law not accurate for non-point masses?
Do i imagine the linear (straight line) homotopy in a correct way?
How to make an animal which can only breed for a certain number of generations?
Is honorific speech ever used in the first person?
Why can't fire hurt Daenerys but it did to Jon Snow in season 1?
Short story about astronauts fertilizing soil with their own bodies
What should one know about term logic before studying propositional and predicate logic?
Does a random sequence of vectors span a Hilbert space?
How do I find my Spellcasting Ability for my D&D character?
Noise in Eigenvalues plot
Pointing to problems without suggesting solutions
Why did Bronn offer to be Tyrion Lannister's champion in trial by combat?
How could a hydrazine and N2O4 cloud (or it's reactants) show up in weather radar?
What is a more techy Technical Writer job title that isn't cutesy or confusing?
Did any compiler fully use 80-bit floating point?
How to get a flat-head nail out of a piece of wood?
By what mechanism was the 2017 UK General Election called?
How to run cron service in cygwin?
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)
Come Celebrate our 10 Year Anniversary!How to run easy_install in cygwin?SSH Does Nothing, No Matter What Command Line it Get (Cygwin)Cygwin package managementUbuntu 9.10 cron script 'ec2-consistent-snapshot' unable to execute and access filesWhen does `cron.daily` run?How can I run squid in cygwinCan't run Cygwin/X as administrator on windows 7Cron Job not running ( too many open files )Unison on bootuprsync fails in crontab
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}
I have run installed cygwin with openssh, rysnc and cron. I've run cygserver-config and cron-config
cygcheck -c | grep cron
cron 4.1-65 OK
cygrunsrv -Q cron
Service : cron
Current State : Running
Controls Accepted : Stop
Command : /usr/sbin/cron -n
Windows recognized the service in the correct user context.
There are no errors in the windows event, cron or cygserver logs. Many resources on the internet insist to use cron-config instead of cygrunsrv -I cron -p /usr/sbin/cron -a -D
or cygrunsrv -I cron -p /usr/sbin/cron --args -n
. I tried all three. Every thing appears to have installed correctly with cron-config but cron jobs are not running.
here is an example of my crontab (yes, it is set to run every minute for debuging purposes!)
crontab -l
* * * * * rsync -avz -e "ssh -i /cygdrive/c/users/path/.ssh/id_rsa" foo.bar@ssh-target.com:/var/log/path/ /cygdrive/c/destination/path/ --progress
UPDATE:
looks like cron is now running and making entries in the windows event log. Unfortunately, now I am running into execution and context errors.
windows-7 cron cygwin
bumped to the homepage by Community♦ 28 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I have run installed cygwin with openssh, rysnc and cron. I've run cygserver-config and cron-config
cygcheck -c | grep cron
cron 4.1-65 OK
cygrunsrv -Q cron
Service : cron
Current State : Running
Controls Accepted : Stop
Command : /usr/sbin/cron -n
Windows recognized the service in the correct user context.
There are no errors in the windows event, cron or cygserver logs. Many resources on the internet insist to use cron-config instead of cygrunsrv -I cron -p /usr/sbin/cron -a -D
or cygrunsrv -I cron -p /usr/sbin/cron --args -n
. I tried all three. Every thing appears to have installed correctly with cron-config but cron jobs are not running.
here is an example of my crontab (yes, it is set to run every minute for debuging purposes!)
crontab -l
* * * * * rsync -avz -e "ssh -i /cygdrive/c/users/path/.ssh/id_rsa" foo.bar@ssh-target.com:/var/log/path/ /cygdrive/c/destination/path/ --progress
UPDATE:
looks like cron is now running and making entries in the windows event log. Unfortunately, now I am running into execution and context errors.
windows-7 cron cygwin
bumped to the homepage by Community♦ 28 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Why don't you just use the windows task scheduler?
– Gerald Schneider
Jul 19 '17 at 15:32
I would exceptnet start cron
gives me "System error 5 has occured. Access is denied"
– John R
Jul 19 '17 at 15:46
add a comment |
I have run installed cygwin with openssh, rysnc and cron. I've run cygserver-config and cron-config
cygcheck -c | grep cron
cron 4.1-65 OK
cygrunsrv -Q cron
Service : cron
Current State : Running
Controls Accepted : Stop
Command : /usr/sbin/cron -n
Windows recognized the service in the correct user context.
There are no errors in the windows event, cron or cygserver logs. Many resources on the internet insist to use cron-config instead of cygrunsrv -I cron -p /usr/sbin/cron -a -D
or cygrunsrv -I cron -p /usr/sbin/cron --args -n
. I tried all three. Every thing appears to have installed correctly with cron-config but cron jobs are not running.
here is an example of my crontab (yes, it is set to run every minute for debuging purposes!)
crontab -l
* * * * * rsync -avz -e "ssh -i /cygdrive/c/users/path/.ssh/id_rsa" foo.bar@ssh-target.com:/var/log/path/ /cygdrive/c/destination/path/ --progress
UPDATE:
looks like cron is now running and making entries in the windows event log. Unfortunately, now I am running into execution and context errors.
windows-7 cron cygwin
I have run installed cygwin with openssh, rysnc and cron. I've run cygserver-config and cron-config
cygcheck -c | grep cron
cron 4.1-65 OK
cygrunsrv -Q cron
Service : cron
Current State : Running
Controls Accepted : Stop
Command : /usr/sbin/cron -n
Windows recognized the service in the correct user context.
There are no errors in the windows event, cron or cygserver logs. Many resources on the internet insist to use cron-config instead of cygrunsrv -I cron -p /usr/sbin/cron -a -D
or cygrunsrv -I cron -p /usr/sbin/cron --args -n
. I tried all three. Every thing appears to have installed correctly with cron-config but cron jobs are not running.
here is an example of my crontab (yes, it is set to run every minute for debuging purposes!)
crontab -l
* * * * * rsync -avz -e "ssh -i /cygdrive/c/users/path/.ssh/id_rsa" foo.bar@ssh-target.com:/var/log/path/ /cygdrive/c/destination/path/ --progress
UPDATE:
looks like cron is now running and making entries in the windows event log. Unfortunately, now I am running into execution and context errors.
windows-7 cron cygwin
windows-7 cron cygwin
edited Jul 19 '17 at 18:13
John R
asked Jul 19 '17 at 13:38
John RJohn R
17612
17612
bumped to the homepage by Community♦ 28 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 28 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Why don't you just use the windows task scheduler?
– Gerald Schneider
Jul 19 '17 at 15:32
I would exceptnet start cron
gives me "System error 5 has occured. Access is denied"
– John R
Jul 19 '17 at 15:46
add a comment |
Why don't you just use the windows task scheduler?
– Gerald Schneider
Jul 19 '17 at 15:32
I would exceptnet start cron
gives me "System error 5 has occured. Access is denied"
– John R
Jul 19 '17 at 15:46
Why don't you just use the windows task scheduler?
– Gerald Schneider
Jul 19 '17 at 15:32
Why don't you just use the windows task scheduler?
– Gerald Schneider
Jul 19 '17 at 15:32
I would except
net start cron
gives me "System error 5 has occured. Access is denied"– John R
Jul 19 '17 at 15:46
I would except
net start cron
gives me "System error 5 has occured. Access is denied"– John R
Jul 19 '17 at 15:46
add a comment |
1 Answer
1
active
oldest
votes
Inside crontab you should always run commands with full path; for rsync it should be
/usr/bin/rsync
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "2"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f863033%2fhow-to-run-cron-service-in-cygwin%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Inside crontab you should always run commands with full path; for rsync it should be
/usr/bin/rsync
add a comment |
Inside crontab you should always run commands with full path; for rsync it should be
/usr/bin/rsync
add a comment |
Inside crontab you should always run commands with full path; for rsync it should be
/usr/bin/rsync
Inside crontab you should always run commands with full path; for rsync it should be
/usr/bin/rsync
answered Mar 11 '18 at 8:53
Danilo SchembriDanilo Schembri
11
11
add a comment |
add a comment |
Thanks for contributing an answer to Server Fault!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f863033%2fhow-to-run-cron-service-in-cygwin%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Why don't you just use the windows task scheduler?
– Gerald Schneider
Jul 19 '17 at 15:32
I would except
net start cron
gives me "System error 5 has occured. Access is denied"– John R
Jul 19 '17 at 15:46