Scheduling options with a specified date do not work (they are not written to user's crontab and are lost when the Schedule dialog is closed).
The following is written to stderr:
"/tmp/tde-pericles/klamav5IKM0I.tmp":16: bad day-of-week
errors in crontab file, can't install.
OS: Arch Linux
Cron: cronie
Scheduling options with a specified date do not work (they are not written to user's crontab and are lost when the Schedule dialog is closed).
The following is written to stderr:
```
"/tmp/tde-pericles/klamav5IKM0I.tmp":16: bad day-of-week
errors in crontab file, can't install.
```
OS: Arch Linux
Cron: cronie
blu.256
changed title from Scan scheduling does not work to Scheduling option with specified date do not work3 years ago
"/tmp/tde-pericles/klamav5IKM0I.tmp":16: bad day-of-week
errors in crontab file, can't install.
Maybe the expected format is wrong? Looks like somehing incorrect is written rather than "nothing is written" to me.
> The following is written to stderr:
> ```
> "/tmp/tde-pericles/klamav5IKM0I.tmp":16: bad day-of-week
> errors in crontab file, can't install.
> ```
Maybe the expected format is wrong? Looks like somehing incorrect is written rather than "nothing is written" to me.
Again, I think this mist be specific to the "cronie" variant on Arch because there is no issue with this on Slackware with dcron. @MicheleC Could you please check this with your distribution?
Again, I think this mist be specific to the "cronie" variant on Arch because there is no issue with this on Slackware with dcron.
@MicheleC Could you please check this with your distribution?
The strange thing is I cannot even reproduce this bug on Arch/cronie. It must be some rare misbehaviour on behalf of my system.
I'm considering closing this issue.
The strange thing is I cannot even reproduce this bug on Arch/cronie. It must be some rare misbehaviour on behalf of my system.
I'm considering closing this issue.
Thanks Philippe. I tested using the latest code and here are my findings.
code builds fine now
I can add a scheduled scan and I see an entry added in /var/spool/cron/crontabs for the selected time
looking at the code of the entry, it will not work is you are root. The code refers to /home/$USER so it fails when run as root
after fixing the code and running the script manually, KlamAV opens. I get a few TDELauncher errors but then the scan actually works.
TDELauncher seems to crash and I can't start any other program from Kicker until I reboot.
the actual schedule scan does not seem to do anything but likely because TDELauncher had crashed previously.
Thanks Philippe. I tested using the latest code and here are my findings.
1. code builds fine now
2. I can add a scheduled scan and I see an entry added in /var/spool/cron/crontabs for the selected time
3. looking at the code of the entry, it will not work is you are root. The code refers to /home/$USER so it fails when run as root
4. after fixing the code and running the script manually, KlamAV opens. I get a few TDELauncher errors but then the scan actually works.
5. TDELauncher seems to crash and I can't start any other program from Kicker until I reboot.
6. the actual schedule scan does not seem to do anything but likely because TDELauncher had crashed previously.
Apropos 3: Maybe KlamAV was not meant to be run as root (running a DE as root is considered dangerous by some). Still, I'll create a separate issue for this because this also could possibly concern non-standard home directories (e.g. /users/User01/).
=> Addressed in issue #22.
--
My own findings: The script works fine when launched from the command line (even from a linux terminal) without crashing tdelauncher... puzzling
Apropos 3: Maybe KlamAV was not meant to be run as root (running a DE as root is considered dangerous by some). Still, I'll create a separate issue for this because this also could possibly concern non-standard home directories (e.g. /users/User01/).
=> Addressed in issue #22.
--
My own findings: The script works fine when launched from the command line (even from a linux terminal) without crashing tdelauncher... puzzling
Apropos 3: Maybe KlamAV was not meant to be run as root (running a DE as root is considered dangerous by some). Still, I'll create a separate issue for this because this also could possibly concern non-standard home directories (e.g. /users/User01/).
=> Addressed in issue #22.
Thanks for fixing this (pending comment made by Slavek there).
As rule of thumb, if something is not meant to be run as root, then it should give a working and exit, as some programs do. Otherwise it should work 😄
> Apropos 3: Maybe KlamAV was not meant to be run as root (running a DE as root is considered dangerous by some). Still, I'll create a separate issue for this because this also could possibly concern non-standard home directories (e.g. /users/User01/).
> => Addressed in issue #22.
Thanks for fixing this (pending comment made by Slavek there).
As rule of thumb, if something is not meant to be run as root, then it should give a working and exit, as some programs do. Otherwise it should work :smile:
the actual schedule scan does not seem to do anything but likely because TDELauncher had crashed previously.
After further testing, the scheduled file is launched and crashes TDELauncher, resulting in the auto scan not be performed. In .xsession-errors a message about TDELauncher being killed is visible.
> 6. the actual schedule scan does not seem to do anything but likely because TDELauncher had crashed previously.
After further testing, the scheduled file is launched and crashes TDELauncher, resulting in the auto scan not be performed. In .xsession-errors a message about TDELauncher being killed is visible.
After further testing, the scheduled file is launched and crashes TDELauncher, resulting in the auto scan not be performed. In .xsession-errors a message about TDELauncher being killed is visible.
This is relevant to issue #21. The current issue (with specified dates) seems no more valid as the bug described cannot be reproduced. Thus, any issues related to tdelauncher crashing should go to issue #21.
> After further testing, the scheduled file is launched and crashes TDELauncher, resulting in the auto scan not be performed. In .xsession-errors a message about TDELauncher being killed is visible.
This is relevant to issue #21. The current issue (with specified dates) seems no more valid as the bug described cannot be reproduced. Thus, any issues related to tdelauncher crashing should go to issue #21.
Scheduling options with a specified date do not work (they are not written to user's crontab and are lost when the Schedule dialog is closed).
The following is written to stderr:
OS: Arch Linux
Cron: cronie
Scan scheduling does not workto Scheduling option with specified date do not work 3 years agoStrangely I cannot reproduce this issue with Slackware and dcron. Might be cronie-specific.
--
OS: Slackware64-current
Cron: dcron
Maybe the expected format is wrong? Looks like somehing incorrect is written rather than "nothing is written" to me.
Again, I think this mist be specific to the "cronie" variant on Arch because there is no issue with this on Slackware with dcron.
Again, I think this mist be specific to the "cronie" variant on Arch because there is no issue with this on Slackware with dcron.
@MicheleC Could you please check this with your distribution?
The strange thing is I cannot even reproduce this bug on Arch/cronie. It must be some rare misbehaviour on behalf of my system.
I'm considering closing this issue.
Will give it a shot here in Debian.
well, looks like I have a FTBFS using the latest sources.
I will test again once you fix that 😄
Okay, I have now pushed the fix into master and ensured that the latest sources behave nice ;)
Thanks Philippe. I tested using the latest code and here are my findings.
Apropos 3: Maybe KlamAV was not meant to be run as root (running a DE as root is considered dangerous by some). Still, I'll create a separate issue for this because this also could possibly concern non-standard home directories (e.g. /users/User01/).
=> Addressed in issue #22.
--
My own findings: The script works fine when launched from the command line (even from a linux terminal) without crashing tdelauncher... puzzling
Thanks for fixing this (pending comment made by Slavek there).
As rule of thumb, if something is not meant to be run as root, then it should give a working and exit, as some programs do. Otherwise it should work 😄
After further testing, the scheduled file is launched and crashes TDELauncher, resulting in the auto scan not be performed. In .xsession-errors a message about TDELauncher being killed is visible.
This is relevant to issue #21. The current issue (with specified dates) seems no more valid as the bug described cannot be reproduced. Thus, any issues related to tdelauncher crashing should go to issue #21.