Ok guys, i'm almost there....
After alot of reading, and testing, it seems i was trying to do too much. Since i'm running oscam and cccam, i thought that if oscam crashes, i would need to kill both oscam and cccam and then restart both, but seems not.
When oscam crashes, cccam still keeps on running (in my case at least). The only reason you would want to stop cccam and then start oscam first and cccam second, is so that cccam doesn't grab the reader before oscam. ( i think)
So when my oscam was crashing, and cccam was still running, the reader was still in oscam's hands (so to speak). So all i'm doing in the script is killall oscam, (just to be sure, oscam is dead), and then restarting oscam with -b.
My other problem was creating the cron job. That took a while. Was puting cron files all over trying different directoris, and then figured out that editing the root cron file in /var/spool/cron/crontabs did the trick. Now my sh file is running every 5 min.
My final problem is that i have to run crond through telnet for the scripts to work. But if i have to reboot my DM800 then the scripts won't run any more, because crond is not starting automatically.
So need to figure out how to get the DM800 to start crond on boot up...