A ChatGPT based emulation of the therapist Doctor Kernel from the book "A digital Affair" by Neora Shem Shaul
Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
123456789101112131415 |
- #!/bin/sh
- . ./.env
- . venv/bin/activate
- while [ 1 ] ; do
- LOGFILE=log-$(date +%Y%m%d-%H%M%S).txt
- python doctor.py|tee logs/$LOGFILE
- # Only 3rd '>' counts. We should also skip '<Enter>' in the header ;)
- if [ $(grep -c '>' logs/$LOGFILE) -lt 3 ] ; then
- rm logs/$LOGFILE
- dialog --title "Session aborted" --msgbox "Hit <Enter> to continue..." 5 60
- else
- python genlogs.py
- dialog --title "Session saved" --msgbox "Session saved to file $LOGFILE" 5 60
- fi
- done
|