07-22-2013
tukuyomi is correct, I did not even notice that you were using "$SERVICE status"... for some reason I thought I saw "$STATUS" which would have been more correct as it contained the output from $($SERVICE status).
Yet, even more correct (as tukuyomi pointed out) would have been the exit code from the service command vs the resulting text output from the service command.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I have a file of the following format -
EXPRPT:SCN:1.1706E+10:SEQ_START:121652:SEQ_END:121664:0
( This file name is variable and changes daily)
Now in the same directory I have another set of files of the format -
EXPRPT.log.0001.0000121669
Now what I am trying to do is to ... (2 Replies)
Discussion started by: super_duper_guy
2 Replies
2. Shell Programming and Scripting
here is a small script:
if ; then
echo please enter an argument
fi
if [ "$1" = "tom"; then
a=$1
echo $a
fi
here is my question. if the script name is j.sh and I run it : j.sh from shell prompt: without a parameter: it prints please enter an argument but if I go with . j.sh (current... (1 Reply)
Discussion started by: rkl1
1 Replies
3. Shell Programming and Scripting
Hi,
I have one file stat.
Stat file contents are as follows: for example.
H50768020040913,00260100,507680,13,0000000643,0000000643,00000,0000
H50769520040808,00260100,507695,13,0000000000,0000000000,00000,0000 H50770620040611,00260100,507706,13,0000000000,0000000000,00000,0000
Now i... (1 Reply)
Discussion started by: davidpreml
1 Replies
4. Shell Programming and Scripting
Hi,
I am new to unix shell scripting. I just want a little script to check the no. of processes are equal to 8, then echo a successful message otherwise echo a unsuccessful message. Please help.
Thanks. (3 Replies)
Discussion started by: everurs789
3 Replies
5. Shell Programming and Scripting
Before I start, I'm posting this for community knowledge, not to offend anyone. I thought it was an interesting project so that's why I'm sharing it.
In the notorious erotic classified ads of craigslist, thousands of individuals post classifieds, using the internet to sell themselves with an... (0 Replies)
Discussion started by: hexpill
0 Replies
6. Shell Programming and Scripting
Hello all,
i have a batmail process running on my machine(java process).
i just need a script we should detect whether the batchnail is running or not.If not it should restart it.
Can anyone assist me on this? (1 Reply)
Discussion started by: Rayzone
1 Replies
7. AIX
Hello all, could somebody help..?
I have following 6 files (with white spaces in their names)
This is file
This is file1
This is file2
This is file3
This is file4
This is file5
This is file6
I tried to run the below script, and it did not give me desired ouput..
$ for i in `ls -1`
>... (7 Replies)
Discussion started by: gsabarinath
7 Replies
8. UNIX for Dummies Questions & Answers
Hi I have the below file
Name=abc
Yr=2011
Mon=05
My script should be in such a way that whenever I run it then
Month should increment by 1 and if the month is 12 then when
I run the script then year should incremented by 1 and month
Should become 01(I.e jan)
Thanks for the help in... (6 Replies)
Discussion started by: kishu
6 Replies
9. Shell Programming and Scripting
Here's the assignment. I'll bold the parts that are rough for me. Unfortunately, that's quite a bit lol. The syntax is, of course, where my issues lie, for the most part. I don't have a lot of programming experience at all :/. I'd post what I've already done, but I'm so lost I really don't know... (1 Reply)
Discussion started by: twk101
1 Replies
10. Shell Programming and Scripting
I'm new to utilities like socat and netcat and I'm not clear if they will do what I need.
I have a "compileDeployStartWebServer.sh" script and a "StartBrowser.sh" script that are started by emacs/elisp at the same time in two different processes.
I'm using Cygwin bash on Windows 10.
My... (3 Replies)
Discussion started by: siegfried
3 Replies
LEARN ABOUT DEBIAN
gnunet-arm
GNUNET-ARM(1) General Commands Manual GNUNET-ARM(1)
NAME
gnunet-arm - control GNUnet services
SYNOPSIS
gnunet-arm [options]
DESCRIPTION
gnunet-arm can be used to start or stop GNUnet services, including the ARM service itself. The ARM service is a supervisor for GNUnet's
service processes. ARM starts services on-demand or as configured and re-starts them if they crash.
OPTIONS
-c FILENAME, --config=FILENAME
Use the configuration file FILENAME.
-e, --end
Shutdown all GNUnet services (including ARM itself). Running "gnunet-arm -e" is the usual way to shutdown a GNUnet peer.
-h, --help
Print short help on options.
-L LOGLEVEL, --loglevel=LOGLEVEL
Use LOGLEVEL for logging. Valid values are DEBUG, INFO, WARNING and ERROR.
-i SERVICE, --init=SERVICE
Starts the specified SERVICE if it is not already running. More specifically, this makes the service behave as if it were in the
default services list.
-k SERVICE, --kill=SERVICE
Stop the specified SERVICE if it is running. While this will kill the service right now, the service may be restarted immediately
if other services depend on it (service is then started 'on-demand'). If the service used to be a 'default' service, its default-
service status will be revoked. If the service was not a default service, it will just be (temporarily) stopped, but could be re-
started on-demand at any time.
-s, --start
Start all GNUnet default services on this system (and also ARM). Naturally, if a service is demanded by a default service, it will
then also be started. Running "gnunet-arm -s" is the usual way to start a GNUnet peer.
-I, --info
List all running services.
-v, --version
Print GNUnet version number.
BUGS
Report bugs by using Mantis <https://gnunet.org/bugs/> or by sending electronic mail to <gnunet-developers@gnu.org>
SEE ALSO
gnunet-service-arm(1)
GNUnet Jan 4, 2012 GNUNET-ARM(1)