Crontab changes not working
Clash Royale CLAN TAG#URR8PPP
up vote
-2
down vote
favorite
I recently made some changes to my crontab, added some new entries and activated one disabled (commented) entry. However, the new changes that I made were not triggered and the crontab functioned as it was in the previous state, although the crontab shows the changes made to it.
One more thing, i also edited the crontab file of root user in my "/var/spool/cron" folder. I think it has something to do with it.
linux cron suse
add a comment |
up vote
-2
down vote
favorite
I recently made some changes to my crontab, added some new entries and activated one disabled (commented) entry. However, the new changes that I made were not triggered and the crontab functioned as it was in the previous state, although the crontab shows the changes made to it.
One more thing, i also edited the crontab file of root user in my "/var/spool/cron" folder. I think it has something to do with it.
linux cron suse
add a comment |
up vote
-2
down vote
favorite
up vote
-2
down vote
favorite
I recently made some changes to my crontab, added some new entries and activated one disabled (commented) entry. However, the new changes that I made were not triggered and the crontab functioned as it was in the previous state, although the crontab shows the changes made to it.
One more thing, i also edited the crontab file of root user in my "/var/spool/cron" folder. I think it has something to do with it.
linux cron suse
I recently made some changes to my crontab, added some new entries and activated one disabled (commented) entry. However, the new changes that I made were not triggered and the crontab functioned as it was in the previous state, although the crontab shows the changes made to it.
One more thing, i also edited the crontab file of root user in my "/var/spool/cron" folder. I think it has something to do with it.
linux cron suse
linux cron suse
asked Dec 10 at 8:14
Faisal Abbas
31
31
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
To edit a crontab file, always use crontab -e
. If you want to edit the crontab of the root user, use sudo crontab -e
.
Changing the files under the crontab spool directory is definitely not advised. Editing via crontab -e
additionally informs the cron daemon that the crontab needs to be re-read. This may not otherwise happen.
Related:
- Can I manually create and edit `/var/spool/cron/crontabs/t` without `crontab -e`?
So now what do I have do? I should also mention that I edited the crontab with "crontab -e" afterwards. Will this be enough for the changes to take effect?
– Faisal Abbas
Dec 10 at 8:45
@FaisalAbbas Editing the crontab withcrontab -e
will ensure that the changes take effect. If you have any errors in the crontab, then this may cause the jobs to fail (and an error message to be emailed to the owner of the crontab), but you never showed what your crontab looked like so I couldn't really comment on that.
– Kusalananda
Dec 10 at 8:48
I edited the crontab with "crontab -e" and the job worked well. Thanks!
– Faisal Abbas
Dec 10 at 8:50
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
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: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f487064%2fcrontab-changes-not-working%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
up vote
1
down vote
accepted
To edit a crontab file, always use crontab -e
. If you want to edit the crontab of the root user, use sudo crontab -e
.
Changing the files under the crontab spool directory is definitely not advised. Editing via crontab -e
additionally informs the cron daemon that the crontab needs to be re-read. This may not otherwise happen.
Related:
- Can I manually create and edit `/var/spool/cron/crontabs/t` without `crontab -e`?
So now what do I have do? I should also mention that I edited the crontab with "crontab -e" afterwards. Will this be enough for the changes to take effect?
– Faisal Abbas
Dec 10 at 8:45
@FaisalAbbas Editing the crontab withcrontab -e
will ensure that the changes take effect. If you have any errors in the crontab, then this may cause the jobs to fail (and an error message to be emailed to the owner of the crontab), but you never showed what your crontab looked like so I couldn't really comment on that.
– Kusalananda
Dec 10 at 8:48
I edited the crontab with "crontab -e" and the job worked well. Thanks!
– Faisal Abbas
Dec 10 at 8:50
add a comment |
up vote
1
down vote
accepted
To edit a crontab file, always use crontab -e
. If you want to edit the crontab of the root user, use sudo crontab -e
.
Changing the files under the crontab spool directory is definitely not advised. Editing via crontab -e
additionally informs the cron daemon that the crontab needs to be re-read. This may not otherwise happen.
Related:
- Can I manually create and edit `/var/spool/cron/crontabs/t` without `crontab -e`?
So now what do I have do? I should also mention that I edited the crontab with "crontab -e" afterwards. Will this be enough for the changes to take effect?
– Faisal Abbas
Dec 10 at 8:45
@FaisalAbbas Editing the crontab withcrontab -e
will ensure that the changes take effect. If you have any errors in the crontab, then this may cause the jobs to fail (and an error message to be emailed to the owner of the crontab), but you never showed what your crontab looked like so I couldn't really comment on that.
– Kusalananda
Dec 10 at 8:48
I edited the crontab with "crontab -e" and the job worked well. Thanks!
– Faisal Abbas
Dec 10 at 8:50
add a comment |
up vote
1
down vote
accepted
up vote
1
down vote
accepted
To edit a crontab file, always use crontab -e
. If you want to edit the crontab of the root user, use sudo crontab -e
.
Changing the files under the crontab spool directory is definitely not advised. Editing via crontab -e
additionally informs the cron daemon that the crontab needs to be re-read. This may not otherwise happen.
Related:
- Can I manually create and edit `/var/spool/cron/crontabs/t` without `crontab -e`?
To edit a crontab file, always use crontab -e
. If you want to edit the crontab of the root user, use sudo crontab -e
.
Changing the files under the crontab spool directory is definitely not advised. Editing via crontab -e
additionally informs the cron daemon that the crontab needs to be re-read. This may not otherwise happen.
Related:
- Can I manually create and edit `/var/spool/cron/crontabs/t` without `crontab -e`?
answered Dec 10 at 8:19
Kusalananda
121k16226370
121k16226370
So now what do I have do? I should also mention that I edited the crontab with "crontab -e" afterwards. Will this be enough for the changes to take effect?
– Faisal Abbas
Dec 10 at 8:45
@FaisalAbbas Editing the crontab withcrontab -e
will ensure that the changes take effect. If you have any errors in the crontab, then this may cause the jobs to fail (and an error message to be emailed to the owner of the crontab), but you never showed what your crontab looked like so I couldn't really comment on that.
– Kusalananda
Dec 10 at 8:48
I edited the crontab with "crontab -e" and the job worked well. Thanks!
– Faisal Abbas
Dec 10 at 8:50
add a comment |
So now what do I have do? I should also mention that I edited the crontab with "crontab -e" afterwards. Will this be enough for the changes to take effect?
– Faisal Abbas
Dec 10 at 8:45
@FaisalAbbas Editing the crontab withcrontab -e
will ensure that the changes take effect. If you have any errors in the crontab, then this may cause the jobs to fail (and an error message to be emailed to the owner of the crontab), but you never showed what your crontab looked like so I couldn't really comment on that.
– Kusalananda
Dec 10 at 8:48
I edited the crontab with "crontab -e" and the job worked well. Thanks!
– Faisal Abbas
Dec 10 at 8:50
So now what do I have do? I should also mention that I edited the crontab with "crontab -e" afterwards. Will this be enough for the changes to take effect?
– Faisal Abbas
Dec 10 at 8:45
So now what do I have do? I should also mention that I edited the crontab with "crontab -e" afterwards. Will this be enough for the changes to take effect?
– Faisal Abbas
Dec 10 at 8:45
@FaisalAbbas Editing the crontab with
crontab -e
will ensure that the changes take effect. If you have any errors in the crontab, then this may cause the jobs to fail (and an error message to be emailed to the owner of the crontab), but you never showed what your crontab looked like so I couldn't really comment on that.– Kusalananda
Dec 10 at 8:48
@FaisalAbbas Editing the crontab with
crontab -e
will ensure that the changes take effect. If you have any errors in the crontab, then this may cause the jobs to fail (and an error message to be emailed to the owner of the crontab), but you never showed what your crontab looked like so I couldn't really comment on that.– Kusalananda
Dec 10 at 8:48
I edited the crontab with "crontab -e" and the job worked well. Thanks!
– Faisal Abbas
Dec 10 at 8:50
I edited the crontab with "crontab -e" and the job worked well. Thanks!
– Faisal Abbas
Dec 10 at 8:50
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- 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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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%2funix.stackexchange.com%2fquestions%2f487064%2fcrontab-changes-not-working%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