2025-02-07 14:46:46 -05:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
2025-02-09 19:19:22 -05:00
|
|
|
set -e
|
|
|
|
|
|
|
|
|
|
set -x
|
2025-02-12 11:06:22 -05:00
|
|
|
|
2025-02-07 14:46:46 -05:00
|
|
|
##
|
|
|
|
|
|
|
|
|
|
echo "what up????"
|
|
|
|
|
|
2025-02-12 11:06:22 -05:00
|
|
|
####
|
|
|
|
|
|
|
|
|
|
bash smart-cron-builder.bash
|
|
|
|
|
|
|
|
|
|
####
|
|
|
|
|
|
|
|
|
|
cp crontabX /etc/cron.d/cronfile
|
|
|
|
|
|
|
|
|
|
# Give execution rights on the cron job
|
|
|
|
|
chmod 0644 /etc/cron.d/cronfile
|
|
|
|
|
|
|
|
|
|
# Apply the cron job
|
|
|
|
|
crontab -u root /etc/cron.d/cronfile
|
|
|
|
|
|
|
|
|
|
crontab -e root
|
|
|
|
|
|
|
|
|
|
####
|
|
|
|
|
|
2025-02-09 19:19:22 -05:00
|
|
|
cd /yankee-gnome-fire-consumer
|
|
|
|
|
|
|
|
|
|
pwd
|
|
|
|
|
|
|
|
|
|
ls
|
|
|
|
|
|
|
|
|
|
whoami
|
2025-02-12 11:06:22 -05:00
|
|
|
|
2025-02-07 14:46:46 -05:00
|
|
|
python3 consumer.py
|