Redirect output to a different text file depending source of data
I have a list of DNS servers I need to look up information on. Each of these servers has a master and a slave database. Essentially what I need to do is create two text files for each server. One with the Master view and one with the Slave view. There's 20 servers, in the end I should have 40 text files.
Hi:
I am currently working on a program which requires direct its ouput to a file here is an example
./proram arg_1 arg_2
when program ends all output will be arg_2 file
Is that possible I am not a bad programmer, However I am stuck there.
Can anyone give a hint?
Thanks
SW (1 Reply)
Ahhhrrrggg I'm having a brain fart...
I want to take the output of a command and redirect it to a file...
This works....
$ man cp | cat >> copy_help
but this doesn't
keytool -help |cat >> keytool_help
It just produces... these lines...
more keytool_help
] ...
... (11 Replies)
Hi all!!
is possible to assign the output of some command to filename, i.e.
grep_output.txt
Otherwise, I want to open a new file which name is inside another, how can I do it?
Thanks a lot! (7 Replies)
Hey guys ,
i have a variable with the contents ...
NUMBER=4
and a test file with the contents
1248
1213
1214
1278
1200
3045
3444
2130
I want to execute a script that will produce the following output ( based on NUMBER=4) to be ...
create 1248 (1 Reply)
Hi All,
I want to redirect only the file names to a new file from the ls -ltr directroy. how Can i do it.
my ls -ltr output will be as below.
-rwxr-xr-x 1 118 103 28295 Jul 26 2006 event.podl
-rwxr-xr-x 1 118 103 28295 Jul 26 2006 xyz.podl
I want my new file... (6 Replies)
Hi,
I have a data file xyz.dat similar to the one given below,
2345|98|809||x|969|0
2345|98|809||y|0|537
2345|97|809||x|544|0
2345|97|809||y|0|651
9685|98|809||x|321|0
9685|98|809||y|0|357
9685|98|709||x|687|0
9685|98|709||y|0|234
2315|98|809||x|564|0
2315|98|809||y|0|537... (2 Replies)
Hi Guys,
Please help me with my problem here:
I have a source file:
1212 23232 343434 ASAS1 4
3212 23232 343434 ASAS2 4
3234 23232 343434 QWQW1 4
1134 23232 343434 QWQW2 4
3212 23232 343434 QWQW3 4
and a mapping... (4 Replies)
Below script perfectly works, giving below mail output. BUT, I want to make the script mail only if there are any D-Defined/T-Transition/B-Broken State WPARs and also to copy the output generated during monitoring to a temporary log file, which gets cleaned up every week. Need suggestions.
... (4 Replies)
Hi Guys,
I want to redirect the output of 3 scripts to a file and then mail the output of those three scripts.
I used below but it is not working:
OFILE=/home/home1/report1
echo "report1 details" > $OFILE
=/home/home1/1.sh > $OFILE
echo... (7 Replies)
I am working on an outage script and I run a command from the command line which tells me the amount of generator failures in my market. The output of this command only gives me three digits to identify the site by. I have a master list of all sites in a separate file, call it list.txt. If my... (7 Replies)
Discussion started by: jbrass
7 Replies
LEARN ABOUT NETBSD
ddns-confgen
DDNS-CONFGEN(8) BIND9 DDNS-CONFGEN(8)NAME
ddns-confgen - ddns key generation tool
SYNOPSIS
ddns-confgen [-a algorithm] [-h] [-k keyname] [-r randomfile] [-s name | -z zone] [-q] [name]
DESCRIPTION
ddns-confgen generates a key for use by nsupdate and named. It simplifies configuration of dynamic zones by generating a key and providing
the nsupdate and named.conf syntax that will be needed to use it, including an example update-policy statement.
If a domain name is specified on the command line, it will be used in the name of the generated key and in the sample named.conf syntax.
For example, ddns-confgen example.com would generate a key called "ddns-key.example.com", and sample named.conf command that could be used
in the zone definition for "example.com".
Note that named itself can configure a local DDNS key for use with nsupdate -l. ddns-confgen is only needed when a more elaborate
configuration is required: for instance, if nsupdate is to be used from a remote system.
OPTIONS -a algorithm
Specifies the algorithm to use for the TSIG key. Available choices are: hmac-md5, hmac-sha1, hmac-sha224, hmac-sha256, hmac-sha384 and
hmac-sha512. The default is hmac-sha256.
-h
Prints a short summary of the options and arguments to ddns-confgen.
-k keyname
Specifies the key name of the DDNS authentication key. The default is ddns-key when neither the -s nor -z option is specified;
otherwise, the default is ddns-key as a separate label followed by the argument of the option, e.g., ddns-key.example.com. The key
name must have the format of a valid domain name, consisting of letters, digits, hyphens and periods.
-q
Quiet mode: Print only the key, with no explanatory text or usage examples.
-r randomfile
Specifies a source of random data for generating the authorization. If the operating system does not provide a /dev/random or
equivalent device, the default source of randomness is keyboard input. randomdev specifies the name of a character device or file
containing random data to be used instead of the default. The special value keyboard indicates that keyboard input should be used.
-s name
Single host mode: The example named.conf text shows how to set an update policy for the specified name using the "name" nametype. The
default key name is ddns-key.name. Note that the "self" nametype cannot be used, since the name to be updated may differ from the key
name. This option cannot be used with the -z option.
-z zone
zone mode: The example named.conf text shows how to set an update policy for the specified zone using the "zonesub" nametype, allowing
updates to all subdomain names within that zone. This option cannot be used with the -s option.
SEE ALSO nsupdate(1), named.conf(5), named(8), BIND 9 Administrator Reference Manual.
AUTHOR
Internet Systems Consortium
COPYRIGHT
Copyright (C) 2009 Internet Systems Consortium, Inc. ("ISC")
BIND9 Jan 29, 2009 DDNS-CONFGEN(8)