Jul 10, 2015 23:17
Jul 6, 2015 21:10
like rock, paper, scissors?
Jul 6, 2015 21:10
@Vogel612 i upvoted every candidate.
2
Jul 6, 2015 21:09
both great moderators
Jul 6, 2015 21:09
I'm torn between Jamal and 200_success
 
Jan 14, 2015 19:18
Jan 14, 2015 19:18
@KasiyA 1 when running, 0 when not. please bear in mind, there may be more than 1 running at any given time, so long as atleast 1 is running the check should pass.
Jan 14, 2015 19:18
2 27 248 - after that command
Jan 14, 2015 19:18
@KasiyA 1 is what i see.
Jan 14, 2015 19:18
@KasiyA the line you just asked me to change. the output returns 3 if the service is running, 0 if not.
Jan 14, 2015 19:18
KasiyA, again that's not the problem. the call returns 3, which it is supposed to. even after updating as you suggested, the script still doesn't work as expected.i appreciate your attempts, but no need to try any further. it is my problem i'll try to figure it out eventually.
Jan 14, 2015 19:18
i run it with ./script.sh
Jan 14, 2015 19:18
@KasiyA already tried it. out put of the call is 3 if service running, 0 if stopped, but always says that its running.
Jan 14, 2015 19:18
@ThomasW. no the first question i asked got a ton of down votes, so my account is more or less teetering on the edge. every down vote my account becomes banned. every couple hundred points it gets unbanned. its stupid.
Jan 14, 2015 19:18
@ThomasW. unfortunately, i have been banned.
Jan 14, 2015 19:18
the real var is status=$(ps -ef | grep -v grep | grep $service | wc -l)
 
Jan 14, 2015 16:52
i am really greatful. ironically, i tried quoting $service everywhere but inside of the variable assignment
Jan 14, 2015 16:51
for your hard work. man you really helped me out alot
Jan 14, 2015 16:51
if you post answer i will upvote and accept
Jan 14, 2015 16:51
good job sir, i truly thank you for your help!
Jan 14, 2015 16:51
yep, it worked man
Jan 14, 2015 16:48
aka the bitbucket
Jan 14, 2015 16:48
quick question, i can run this as a cron job and dump output to dev null right?
Jan 14, 2015 16:47
nice job
Jan 14, 2015 16:47
it works man
Jan 14, 2015 16:44
nope, still no good
Jan 14, 2015 16:38
1
Jan 14, 2015 16:38
0
Jan 14, 2015 16:34
you were trying to let me figure that out on my own huh
Jan 14, 2015 16:33
damn
Jan 14, 2015 16:33
null?
Jan 14, 2015 16:32
no, i don't. i don't even know bash really. just found this when googling and hacked on it but never could get it working
Jan 14, 2015 16:27
i'm on ubuntu 14.04 fwiw
Jan 14, 2015 16:26
it's crazy man
Jan 14, 2015 16:26
Jan 14, 2015 16:22
There was no output for either one as should be. which is why i was so perplexed to begin with. the script should work or so i thought
Jan 14, 2015 16:22
KasiyA, hi
Jan 14, 2015 16:22
@KasiyA 1 when running, 0 when not. please bear in mind, there may be more than 1 running at any given time, so long as atleast 1 is running the check should pass.
Jan 14, 2015 16:22
2 27 248 - after that command
Jan 14, 2015 16:22
@KasiyA 1 is what i see.
Jan 14, 2015 16:22
@KasiyA the line you just asked me to change. the output returns 3 if the service is running, 0 if not.
Jan 14, 2015 16:22
KasiyA, again that's not the problem. the call returns 3, which it is supposed to. even after updating as you suggested, the script still doesn't work as expected.i appreciate your attempts, but no need to try any further. it is my problem i'll try to figure it out eventually.
Jan 14, 2015 16:22
i run it with ./script.sh
Jan 14, 2015 16:22
@KasiyA already tried it. out put of the call is 3 if service running, 0 if stopped, but always says that its running.
Jan 14, 2015 16:22
@ThomasW. no the first question i asked got a ton of down votes, so my account is more or less teetering on the edge. every down vote my account becomes banned. every couple hundred points it gets unbanned. its stupid.
Jan 14, 2015 16:22
@ThomasW. unfortunately, i have been banned.
Jan 14, 2015 16:22
the real var is status=$(ps -ef | grep -v grep | grep $service | wc -l)
 

Stack Exchange Community Blogs

For anyone wanting to help or participate with the Stack Excha...
Jan 22, 2014 18:03
Is it possible to hire a jquery expert here? i'm looking to contact ShadowScripter to build an implementation of his clicked scroll bar detection system.