automated terminal push
This commit is contained in:
28
recycle/pizza-install.bash
Executable file
28
recycle/pizza-install.bash
Executable file
@@ -0,0 +1,28 @@
|
||||
set -e
|
||||
|
||||
set -x
|
||||
|
||||
whoami
|
||||
|
||||
cat pizza.bash
|
||||
|
||||
cp pizza.bash /tmp/pizza.bash
|
||||
|
||||
chmod +x /tmp/pizza.bash
|
||||
|
||||
|
||||
echo "* * * * * yankee /bin/bash /tmp/pizza.bash >> /tmp/cron.log 2&>1" >> robotcron
|
||||
|
||||
echo "* * * * * yankee /tmp/pizza.bash >> /var/log/cron.log 2>&1" >> robotcron
|
||||
|
||||
echo "printing crontab"
|
||||
|
||||
cat robotcron
|
||||
|
||||
crontab -u yankee robotcron
|
||||
|
||||
##
|
||||
|
||||
echo
|
||||
echo "finished installing robot and configuring cron".
|
||||
echo
|
||||
Reference in New Issue
Block a user