automated terminal push

This commit is contained in:
Your Name
2025-02-12 14:58:39 -05:00
parent 6667c774c3
commit eb71aa4c48
39 changed files with 1 additions and 17 deletions

View File

@@ -0,0 +1,51 @@
#!/bin/sh
##
## This script installs the digital hunter killer drone.
## The scripts will be installed to /var/root/robot-process-killer/
## The scripts will be automated via cron job configuration
##
## Questions or issues? Email me here:
##
## the.software.shinobi@gmail.com
##
set -x
set -e
##
mkdir -p /var/root/robot-process-killer/
ls -lha /var/root/robot-process-killer/
##
cp -r robot/* /var/root/robot-process-killer/
ls -lha /var/root/robot-process-killer/
##
cd /var/root/robot-process-killer/
chmod +x *.bash
ls -lha
##
echo "* * * * * /var/root/robot-process-killer/robot-kill-target-system-processes.sh" >> robotcron
echo "printing crontab"
cat robotcron
crontab -u root robotcron
##
echo
echo "finished installing robot and configuring cron".
echo

1
recycle/special/mycron Normal file
View File

@@ -0,0 +1 @@
00 09 * * 1-5 echo hello

11
recycle/special/provision.bash Executable file
View File

@@ -0,0 +1,11 @@
echo "00 09 * * 1-5 echo hello" >> mycron
echo "printing crontab"
cat mycron
crontab mycron
crontab -l

View File

@@ -0,0 +1,7 @@
* * * * * /tmp/pizza.bash
* * * * * /tmp/pizza.bash
* * * * * /tmp/pizza.bash
* * * * * /tmp/pizza.bash
* * * * * /tmp/pizza.bash
* * * * * /tmp/pizza.bash
* * * * * /tmp/pizza.bash

19
recycle/special/special.bash Executable file
View File

@@ -0,0 +1,19 @@
whoami
cp pizza.bash /tmp/pizza.bash
echo "* * * * * /tmp/pizza.bash" >> robotcron
echo "printing crontab"
cat robotcron
crontab -u softwareshinobi robotcron
##
echo
echo "finished installing robot and configuring cron".
echo