#!/bin/bash sqlite3 -header -column /root/gpt-home/gptplus.db "SELECT id, \"index\", email, status, plan, message, error, duration FROM task_logs WHERE task_id LIKE '1cd9fa9c%' ORDER BY id;" echo "---" sqlite3 -line /root/gpt-home/gptplus.db "SELECT id, type, total_count, done_count, success_count, fail_count, status FROM tasks WHERE id LIKE '1cd9fa9c%';"