Small script shell to make work on centos


Well,It is just a small problem to solve,i have one shell script and i wanna make it work on my server,i have tried but wont work,i puted on root directory but it only return value "0" and doesnt turn on the server,i wanna run multiples server in each folder but of course with name differents samp1,samp2,samp3...this script is added on cronjob and run everyminute to check if the server is turned on and if not i will run

the script code is


PROCESS_COUNT=$(ps aux | grep samp1 | grep -v grep | wc -l)



0) /root/samp1/samp1 &


1) echo "OK, program is already running once"


*) echo "OK, program is already multiple times"



Well if you think this script is not good,you can build one improved

My system is Centos 5,Running on VPS

I wanna just the script installed and working in 2 VPS,i will give shell acess,ftp or what needed

Evner: Linux, Script Installering

Se mere: centos ftp script, shell script centos, centos login script, small centos, script centos, centos shell script, centos service script, shell centos, create shell script centos, centos shell, create script centos, shell scripts centos, centos script, centos shell script return value, centos process_count, running shell script centos, script login centos, shell script database project linux, centos shell scripts, centos shell login messages, executing shell script centos, centos create startup script, make $5, centos script sample, writing scripts centos

Om arbejdsgiveren:
( 5 bedømmelser ) Brasilia, Brazil

Projekt ID: #311330

Tildelt til:


Ready to start.

$30 USD in 0 dage
(29 bedømmelser)