init III
This commit is contained in:
43
Perl control mFi/alt/schicht.sh
Normal file
43
Perl control mFi/alt/schicht.sh
Normal file
@@ -0,0 +1,43 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "$1" == "" ]
|
||||
then
|
||||
echo "
|
||||
./schicht.sh <früh|mittel|spät>
|
||||
"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
if [ "$1" == "früh" ]
|
||||
then
|
||||
A=1
|
||||
B=0
|
||||
C=0
|
||||
elif [ "$1" == "mittel" ]
|
||||
then
|
||||
A=0
|
||||
B=1
|
||||
C=0
|
||||
elif [ "$1" == "spät" ]
|
||||
then
|
||||
A=0
|
||||
B=0
|
||||
C=1
|
||||
else
|
||||
echo "
|
||||
Fehlerhafter Aufruf
|
||||
"
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
echo "
|
||||
update cron set active=$A where marker1='früh';
|
||||
update cron set active=$B where marker1='mittel';
|
||||
update cron set active=$C where marker1='spät';
|
||||
" | mysql -u1_mfi -pK01v1kk0! -D 1_mfi -h panel.agserver.de
|
||||
|
||||
echo "
|
||||
select * from cron;
|
||||
" | mysql -u1_mfi -pK01v1kk0! -D 1_mfi -h panel.agserver.de
|
||||
|
||||
|
||||
Reference in New Issue
Block a user