I have fairly simple sh script that checks if process is running, if not then start it.My problem is that sh script cant start the program for some reason...Here's my script:#!/bin/shif ps x |grep -v grep |grep -c CCcam >/dev/nullthenecho cccam okelseecho cccam restarting/emu/cccam/CCcam.x86 &fiNow i run script manually to see if it worksroot@lenovo:/emu/cccam# /emu/script/cccam_check.shcccam restartingIt seems that script sees that cccam is not running, then tries to start it, but fails...root@lenovo:/emu/cccam# ps x |grep -v grep |grep -c CCcam 0If i start proccess manually then it starts just fineroot@lenovo:/emu/cccam# ./CCcam.x86 &[1] 32712root@lenovo:/emu/cccam#Anybody have any ideas?
sh script cannot run process
debian;shell script