Cron job with asterisk resolves it during saving

Hi,
I am trying to add a cron job like this:

/usr/bin/find /home/account/apps/something/results/xxx* -mtime +20 -print | xargs rm

but when clicking in “save” button it is changed by something like this:

/usr/bin/find /home/account/apps/something/results/xxx_09-17-24.csv /home/account/apps/something/results/xxx_09-18-24.csv /home/account/apps/something/results/xxx_09-19-24.csv -mtime +20 -print | xargs rm

in fact the list is very big, I mean, it does the * asterisk substitution before to save the cron job and saves it with it resolved.

How can I fix it? If I use “crontab -e” from command line for that user I am able to modify it, but hestiacp is still showing old cron job, so not ideal.

Thanks in advance for your help!

Well, I set it inside a sh job, adding it instead the command in cron jobs, and that’s all… but looks weird that this asterisk resolution happens when saving cron jobs in hestiacp.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.