tee /home/user/test.sh <<-'EOF'
#!/bin/bash
i=1
for (( ; ; ))
do
echo "Current Number: $((i++))"
echo "Current Time:" `date "+%Y-%m-%d %H:%M:%S"`
echo "get content"
curl -s -o /dev/null https://szbbs.sznews.com/thread-4196156-1-1.html
random_num="$(( ( RANDOM % 61 ) + 60 ))s"
echo "sleep ${random_num}"
sleep ${random_num}
done
EOF
chmod +x /home/user/test.sh
nohup /home/user/test.sh