03-23-2010
Thanks! That helps a lot. Is it possible to limit the output from the command in ' ' to a certain number of characters or to one line?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello there,
I wrote a shell script to modify the code for some of our clients in our client database. Before starting the data modification the program performs a few checks.
When a check is being performed, it should be shown on the screen of the user running the program, the result of... (5 Replies)
Discussion started by: JoBa
5 Replies
2. Shell Programming and Scripting
I have script like
echo -n FINISHED FEXP: ${TABLE2EXP}
echo $STATUS
I want the output of both the echo statement in one line
How can i do this (3 Replies)
Discussion started by: scorp_rahul23
3 Replies
3. Shell Programming and Scripting
Hi
I want to display "echo command value in loop" in single line. My requirement is to show the input file (test_1.txt) like the output file (test_2.txt) given below.
Input file :test_1.txt
a1|b1|4|5
a1|b1|42|9
a2|b2|32|25
a1|b1|2|5
a3|b3|4|8
a2|b2|14|6
Output file:test_2.txt... (2 Replies)
Discussion started by: sakthifire
2 Replies
4. Shell Programming and Scripting
Hi,
When I run the following command in terminal it works. The string TEST is appended to a file silently.
echo TEST | tee -a file.txt &>/dev/null
However, when I paste this same line to a file, say shell1.sh, and use bourne shell .
I run this file in terminal, ./shell1.sh.
However I... (1 Reply)
Discussion started by: shahanali
1 Replies
5. Shell Programming and Scripting
Hi,
I try to write script and echo two command at the same line .
echo "A"
echo "B"
How can I pipe above two command at the same line in text file .
So, in the output text file , you can see below ???
A B
not
A
B
Any sugggestion ??? (4 Replies)
Discussion started by: chuikingman
4 Replies
6. Shell Programming and Scripting
Hello
i am trying to do some calculation from output command
for example
ls -l
if
then
echo "error"
else
echo "$"
fi
its something like this
which get strings from output command and try to sum total lines of this string if exceed certain number it display error
if not it... (3 Replies)
Discussion started by: mogabr
3 Replies
7. UNIX for Dummies Questions & Answers
Hi ,
This might sound little familar to you guys, but am struck with something.
i have an IF conditioned loop which will determine a variable to get used in the later part of the script.
if ;
then
if ;
then
Var_name="This is first line.This is second line.This is... (11 Replies)
Discussion started by: scott_cog
11 Replies
8. Shell Programming and Scripting
How do i echo the output of a unix command using shell script???
Like:
echo /etc/ ls -l (2 Replies)
Discussion started by: sunny2802
2 Replies
9. Shell Programming and Scripting
I'm trying to echo the release version of some of our Linux servers. Typically I do these types of things by "catting" a text file with the host names, "ssh-ing" to the host and running my string.
This is what I've written
for i in `cat versions.txt` ; do echo $i ; ssh $i cat /etc/issue |... (5 Replies)
Discussion started by: lombardi4851
5 Replies
10. Shell Programming and Scripting
Hello,
I've been trying to find the answer to this with Google and trying to browse the forums, but I haven't been able to come up with anything. If this has already been answered, please link me to the thread as I can't find it.
I've been asked to write a script that pulls a list of our CPE... (51 Replies)
Discussion started by: rwalker
51 Replies
LEARN ABOUT DEBIAN
instances.conf
INSTANCES.CONF(5) [FIXME: manual] INSTANCES.CONF(5)
NAME
instances.conf_ - zorp(8) instances database
DESCRIPTION
The instances.conf file describes the zorp(8) instances to be run on the system. It is processed by zorpctl(8) line by line, each line
having the structure described below. Empty lines and lines beginning with '#' are comments ignored by zorpctl.
STRUCTURE
instance-name parameters [-- zorpctl-options]
instance-name is the name of the Zorp instance to be started; it is passed to zorp with its --as parameter. Instance names may consist of
the characters [a-zA-Z0-9_] and must begin with a letter.
parameters are space separated parameters entered into the zorp command-line. For details on these command-line parameters see zorp(8).
zorpctl-options are space separated parameters control startup specific options. They are processed by zorpctl itself. The following
zorpctl options are available:
--auto-restart or -A
Enable the automatic restart feature of zorpctl. When an instance is in auto-restart mode, it is restarted automatically in case the
instance exits.
--no-auto-restart or -a
Disable automatic restart for this instance.
--fd-limit <number> or -f <number>
Set the file descriptor limit to <number>. The file descriptor limit defaults to the number of threads (specified by the --threads
parameter of zorp(8)) multiplied by 4.
--process-limit <number> or -p <number>
Set the process limit to <number>. The process limit defaults to the number of threads (specified by the --threads parameter of
zorp(8)) multiplied by 2.
--enable-core
Explicitly enable core dumps for Zorp processes. The core limit is inherited from the local starting environment (e.g.: starting shell)
if not specified.
--parallel-instances <number> or -P <number>
Run <number> of processes for the instance. zorpctl starts exactly one Zorp process in master mode and <number> of slave Zorp
processes. This mode of operation is incompatible with old-style dispatchers, you must use the new rule-based policy with this option.
EXAMPLES
zorp_ftp --policy /etc/zorp/policy.py --verbose 5
The line above describes a Zorp instance named zorp_ftp using policy file /etc/zorp/policy.py, and having verbosity level 5.
zorp_intra -v4 -p /etc/zorp/policy.py --threads 500 --no-auto-restart --fd-limit 1024 --process-limit 512
This line describes a zorp instance named zorp_intra using the policy file /etc/zorp/policy.py, verbosity level 4. The maximum number of
threads is set to 500, file descriptor limit to 1024, process limit to 512.
FILES
The default location of instances.conf is /etc/zorp/instances.conf. Defaults for zorpctl tunables can be specified in /etc/zorp/zorpctl.
AUTHOR
This manual page was written by the BalaBit Documentation Team <documentation@balabit.com>.
COPYRIGHT
Copyright (C) 2006 BalaBit IT Security Ltd. All rights reserved. For more information about the legal status of this document please read:
http://www.balabit.com/products/zorp/docs/legal_notice.bbq
[FIXME: source] 03/06/2012 INSTANCES.CONF(5)