File size: 389 Bytes
561c3da
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash

EPOCH=1
CURRENT_SUB=0

PAST=0
PAST_SUB=4

while true
do
  for i in $(seq 0 4)
  do
    echo "EPOCH: $EPOCH SUB: $i PAST_EPOCH: $PAST PAST_SUB: $PAST_SUB"
    /home/ubuntu/kohya-command-base.sh $EPOCH $i $PAST $PAST_SUB
    sleep 1
    PAST=$EPOCH
    
    PAST_SUB=$i
  done
  
  PAST=$EPOCH
  EPOCH=$(($EPOCH+1))
  echo ""
  echo "STARTING NEW EPOCH: $EPOCH"
  echo ""
done