automated terminal push
This commit is contained in:
19
pizza-install.bash
Executable file
19
pizza-install.bash
Executable file
@@ -0,0 +1,19 @@
|
||||
whoami
|
||||
|
||||
touch /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
|
||||
1
pizza.bash
Executable file
1
pizza.bash
Executable file
@@ -0,0 +1 @@
|
||||
touch /tmp/`date +"%Y-%m-%d-%H-%M-%S"`.dat
|
||||
1
special/mycron
Normal file
1
special/mycron
Normal file
@@ -0,0 +1 @@
|
||||
00 09 * * 1-5 echo hello
|
||||
7
special/robotcron
Normal file
7
special/robotcron
Normal 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
special/special.bash
Executable file
19
special/special.bash
Executable 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
|
||||
Reference in New Issue
Block a user