I'm working with many scripts. So I do add/remove scripts with "
crontab -e" so many times. I tried to make an "Available/Enabled" structure for these.
This is my structure's tree:
# all scripts scripts/available/1.sh scripts/available/2.sh scripts/available/3.sh # enabled scripts scripts/enabled/1.sh -> scripts/available/1.sh scripts/enabled/2.sh -> scripts/available/2.sh
Then I add this line to "
* * * * * /home/user/scripts/enabled/* &> /dev/null
This is the output of
sudo systemctl status cron.service :
CGroup: /system.slice/cron.service ├─17763 /bin/bash /home/user/scripts/enabled/1.sh /home/user/scripts/enabled/2.sh
1.sh is working every minute, but 2.sh is not working.
I want to run scripts from only cron. What can I do for this, if I do not want to make a script for "run scripts in a directory" with another script,?
Also do you know any Telegram group for active "GNU/Linux System Administrators"?