Project Detail

Small script shell to make work on centos  

Small script shell to make work on centos is project number 311330
posted at Freelancer.com. Click here to post your own project.

 

| More Free Trial For New Buyers
 

Status:

Selected Providers: ozzik

Budget: $30-250

Created: 09/07/2008 at 9:50 EDT

Bid Count: 1

Average Bid:
$ 30

10/07/2008 at 9:50 EDT

Project Creator: dextervip
Employer Rating: 10/1010/1010/1010/1010/1010/1010/1010/1010/1010/10 (3 reviews)

Bid On This Project
 

Description

Hello,

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

#!/bin/sh

PROCESS_COUNT=$(ps aux | grep samp1 | grep -v grep | wc -l)
echo $PROCESS_COUNT
case $PROCESS_COUNT in
0) /root/samp1/samp1 &
;;
1) echo "OK, program is already running once"
;;
*) echo "OK, program is already multiple times"
;;
esac

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

Messages Posted:0 View project clarification board Post message on project clarification board

Bid On This Project
 

If you are the project creator or one of the bidders Log In for more options

 

30

0 days

09-07-2008 10:48 EDT

Ready to start.

help


    Bid on this Project