I have shell scripts like
#!/bin/bash while true;do #Code HERE! #Pushing Data to DB echo "Data to DB"> /root/schip.log 2>&1 done
This is script is continuously running and gathering info on server and then sending data to DB(TimeStamp DB). I don't why, sometimes the scripts are dieing. In logs I can't see any thing. In same way, I saw in Python script. Python script like this
import <stuff> while True: #Code HERE #Push data to DB print "Data to DB"
So, what could be the reasons?, how do I prevent? and how can I enable the logs(In python and Shell) to know the reason?. Thanks!