04-11-2009
Hi,
doing it your way gives you errors?
I'm not sure i understood the problem, can you explain what happens if you use that while cicle?
I think it should work correctly
bye
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
Is it possible to accept a filename as command line parameter and then write to that file using command redirection? i tried the below script.
outputfile=`echo $1`
echo "Writing to file" > 'echo $outputfile'
exit $returncode
but it isnt working. is there any other way to... (9 Replies)
Discussion started by: silas.john
9 Replies
2. Shell Programming and Scripting
hi
i have a file contains data
Line timeout:
START->SIGNON_REPLY,
SIGNON_REPLY->SIGNON,
Received SOT req
SOT request:
SIGNON->SOT_REPLY,
SOT_REPLY->DATA_RECEIVE,
DATA_RECEIVE->EOD,
i need to write into one line , separated by commas
please help
thanks
Satya (2 Replies)
Discussion started by: Satyak
2 Replies
3. Shell Programming and Scripting
I need to write value of variable $version at a particular line in a text file.
Line number is determined by another variable &line......I don't know how to do it in shell script ... (2 Replies)
Discussion started by: punitpa
2 Replies
4. Shell Programming and Scripting
Hi,
I have to write s script to check an input file for invalid characters. In this script I have to find the exact line of the invalid character. If the input file contain 2 invalid character sat line 10 and 17, the script will show the value 10 and 17. Any help is appreciated. (3 Replies)
Discussion started by: beginner82
3 Replies
5. Shell Programming and Scripting
I want to put a text string in file using any method on specific line
line number 30
text to be put %this is location /var/www/filename (3 Replies)
Discussion started by: aliahsan81
3 Replies
6. Shell Programming and Scripting
Dear All,
I have a question that's been difficult to get an answer to.
I often write command line loops, e.g. find files, print name, grep for term, apply sed, etc
I use both zsh and bash.
When I write a loop e.g.
for line in `more myfile.txt`
> do
> echo $line
> done
but... (2 Replies)
Discussion started by: JohnK1
2 Replies
7. Shell Programming and Scripting
Given a particular line number and a corresponding column number, can i write something in the file during run time?
For example x=1 and during runtime i want to write the value of x in column 100 of every line of a given file, then how shud that be done?
Thanks (9 Replies)
Discussion started by: arindamlive
9 Replies
8. UNIX for Dummies Questions & Answers
Hi,
I have 1000 files names data1.txt through data1000.txt inside a folder. I want to write a script that will take each first line from the files and write them as output into a new file. How do I go about doing that? Thanks! (2 Replies)
Discussion started by: evelibertine
2 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I have a file whihc looks like
file_1 100 200
file_2 200 300
file_4 400 500
as the file_3 is missing so I want to replace it by
file_3 0 0
the final output would look like
file_1 100 200
file_2 200 300
file_3 0 0
file_4 400 500
Any help is highly appreciated.
Regards, (3 Replies)
Discussion started by: begin_2013
3 Replies
10. Shell Programming and Scripting
Hello
I am facing a very unique problem and not able to understand why. I have written a function which will check header of the file. If header is present good else it will write the header on top
def writeHeaderOutputCSV(fileName):
# See if the file exist already
try:
... (0 Replies)
Discussion started by: radioactive9
0 Replies
LEARN ABOUT DEBIAN
verify_krb5_conf
VERIFY_KRB5_CONF(8) BSD System Manager's Manual VERIFY_KRB5_CONF(8)
NAME
verify_krb5_conf -- checks krb5.conf for obvious errors
SYNOPSIS
verify_krb5_conf [config-file]
DESCRIPTION
verify_krb5_conf reads the configuration file krb5.conf, or the file given on the command line, parses it, checking verifying that the syntax
is not correctly wrong.
If the file is syntactically correct, verify_krb5_conf tries to verify that the contents of the file is of relevant nature.
ENVIRONMENT
KRB5_CONFIG points to the configuration file to read.
FILES
/etc/krb5.conf Kerberos 5 configuration file
DIAGNOSTICS
Possible output from verify_krb5_conf include:
<path>: failed to parse <something> as size/time/number/boolean
Usually means that <something> is misspelled, or that it contains weird characters. The parsing done by verify_krb5_conf is more
strict than the one performed by libkrb5, so strings that work in real life might be reported as bad.
<path>: host not found (<hostname>)
Means that <path> is supposed to point to a host, but it can't be recognised as one.
<path>: unknown or wrong type
Means that <path> is either a string when it should be a list, vice versa, or just that verify_krb5_conf is confused.
<path>: unknown entry
Means that <string> is not known by verify_krb5_conf.
SEE ALSO
krb5.conf(5)
BUGS
Since each application can put almost anything in the config file, it's hard to come up with a watertight verification process. Most of the
default settings are sanity checked, but this does not mean that every problem is discovered, or that everything that is reported as a possi-
ble problem actually is one. This tool should thus be used with some care.
It should warn about obsolete data, or bad practice, but currently doesn't.
HEIMDAL
December 8, 2004 HEIMDAL