Advertisement
Guest User

Untitled

a guest
May 3rd, 2023
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.34 KB | None | 0 0
  1. #!/usr/bin/env bash
  2. # $1 -- image id in booru
  3. # $2 -- absolute path to image
  4.  
  5. SCRIPT_DIR=/srv/auto_tagger
  6.  
  7. # Add image to queue
  8. echo "$2" > "$SCRIPT_DIR/spool/$1"
  9.  
  10. # Start processing thread if not running yet
  11. if [ ! -f /tmp/deepdanbooru_thread.lock ]; then
  12.     $SCRIPT_DIR/processing_queue.sh &
  13.     touch /tmp/deepdanbooru_thread.lock
  14. fi
  15.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement