0 */6 * * * /home/ubuntu/.local/bin/claude -p "ping" --max-turns 1 --no-session-persistence >> /home/ubuntu/claude-ping.log 2>&1
I make a cronjob like this, to make a cron but i think that it doesn't work well.
I sometimes need to do "claude -p "ping" --max-turns 1 --no-session-persistence" manually.
0 */6 * * * /home/ubuntu/.local/bin/claude -p "ping" --max-turns 1 --no-session-persistence >> /home/ubuntu/claude-ping.log 2>&1
I make a cronjob like this, to make a cron but i think that it doesn't work well.
I sometimes need to do "claude -p "ping" --max-turns 1 --no-session-persistence" manually.