03-31-2017
Did you consider redirecting the output?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I need to append string "Hi" to the beginning of the lines containing some specific string. How can I achieve that?
Please help.
Malay (1 Reply)
Discussion started by: malaymaru
1 Replies
2. Shell Programming and Scripting
Hi,
I have a file like this...
<o t="Batch" id="8410" p="/" g="32">
<a n="name">
<v s="DBBA1MM"/>
</a>
<a n="owner">
<v r="/Administrator"/>
</a>
<a n="rights">
<v s="95"/>
</a>
<a n="debugLevel">
<v s="3"/>
</a>
<a n="avsStoreLoc">
<v... (8 Replies)
Discussion started by: kesu2k
8 Replies
3. UNIX for Dummies Questions & Answers
Hello All,
I am after the script or the command which can scan the entire file for a string $PART_ID and when found to extract/copy the corresponding $PART_ID value (e.g THIRE_PTY_SOFTWARE for the 1st occurance of $PART_ID in the attached file) to a file.
Appreciate your help.
Thanks in... (3 Replies)
Discussion started by: forumthreads
3 Replies
4. Shell Programming and Scripting
I want to write a script to check for duplicates
For example: I have a text file with information in the format of /etc/passwd
alice:x:1008:555:William Williams:/home/bill:/bin/bash
bob:x:1018:588:Bobs Boos:/home/bob:/bin/bash
bob:x:1019:528:Robt Ross:/home/bob:/bin/bash
james:x:1012:518:Tilly... (3 Replies)
Discussion started by: ixDLxi
3 Replies
5. Shell Programming and Scripting
I am having a text file which is having more than 200 lines.
EX:
001010122 12000 BIB 12000 11200 1200003
001010122 2000 AND 12000 11200 1200003
001010122 12000 KVB 12000 11200 1200003
In the above file i want to search for string KVB and add/replace... (1 Reply)
Discussion started by: suryanarayana
1 Replies
6. Shell Programming and Scripting
Dear All
I am having a text file which is having more than 200 lines.
EX:
001010122 12000 BIB 12000 11200 1200003
001010122 2000 AND 12000 11200 1200003
001010122 12000 KVB 12000 11200 1200003
In the above file i want to search for string KVB... (5 Replies)
Discussion started by: suryanarayana
5 Replies
7. Shell Programming and Scripting
Hi,
Need your help for this scripting issue I have. I am not really good at this, so seeking your help.
I have a file looking similar to this:
Hello, i am human and name=ABCD.
How are you?
Hello, i am human and name=PQRS.
I am good.
Hello, i am human and name=ABCD.
Good bye.
Hello, i... (12 Replies)
Discussion started by: royzlife
12 Replies
8. Programming
Hello guys,
i want some help please in coding that program , " A mini dictionary"
the file looks like :
Waver --- To be hesitated
retirement --- life after end of career
The user enter the word , and then it prints the meaning of it
Please use CODE tags when... (4 Replies)
Discussion started by: Alyy
4 Replies
9. Shell Programming and Scripting
Hi Team
I have an huge xml where i need to search for a ceratin numbers. For example
2014-05-06 15:15:41,498 INFO WebContainer : 10 CommonServicesLogs - CleansingTriggerService.invokeCleansingService Entered PUBSUB NOTIFY MESSAGE () -
<?xml version="1.0" encoding="UTF-8"... (5 Replies)
Discussion started by: Kannannair
5 Replies
10. Shell Programming and Scripting
Hi guys,
I have a text file named file1.txt that is formatted like this:
001 , ID , 20000
002 , Name , Brandon
003 , Phone_Number , 616-234-1999
004 , SSNumber , 234-23-234
005 , Model , Toyota
007 , Engine ,V8
008 , GPS , OFF
and I have file2.txt formatted like this:
... (2 Replies)
Discussion started by: An0mander
2 Replies
LEARN ABOUT DEBIAN
mono-service2
Mono(Mono 1.0) Mono(Mono 1.0)
NAME
mono-service, mono-service2 - Mono ServiceProcess host
SYNOPSIS
mono-service [options] program.exe
DESCRIPTION
The mono-service is a host to run services built with the ServiceProcess assembly.
Use mono-service to run services that use the 1.0 assemblies and use mono-service2 to run services that use the 2.0 assemblies.
Services can be paused by sending the SIGUSR1 signal to the process, and execution can be resumed by sending the SIGUSR2 signal. The ser-
vice can be cleanly shutdown by sending the SIGTERM signal to the process.
Mono programs started with mono-service run with the MONO_DISABLE_SHM variable set. This means that certain Mono features that depend on
it are not available to services.
The following options can be used to control the service:
-d:DIRECTORY
Use this option to specify the working directory for the service. The default is the current directory.
-l:LOCKFILE
Specifies the file to use for locking, the default is a filename constructed in /tmp based on the name of the program that hosts the
service.
-m:MESSAGE
Name to show in the syslog.
-n:NAME
Use this to specify the service to be launched (if the program contains more than one service). The default is to run the first
defined service.
--debug
Use this option to prevent mono-service from redirecting stdin and stdout and prevent the program to be sent to the background.
Equivalent to --no-daemon
--no-daemon
Use this option to prevent mono-service from redirecting stdin and stdout and prevent the program to be sent to the background.
Equivalent to --debug.
CONTROL
You can control the service by sending signals to the process, you can use the following commands:
Pausing service:
kill -USR1 `cat <lock file>`
Resuming service:
kill -USR2 `cat <lock file>`
Stopping the service:
kill `cat <lock file>`
EXAMPLES
Start the MyService.exe assembly, with a lock in /root/service-lock:
mono-service -l:/root/service-lock MyService.exe
DEBUGGING
Messages produced by the service are logged on syslog.
MAILING LISTS
Visit http://lists.ximian.com/mailman/listinfo/mono-list for details.
WEB SITE
Visit: http://www.mono-project.com for details
SEE ALSO
mono(1)
N:System.ServiceProcess
Mono(Mono 1.0)