04-03-2013
Thanks for the reply. My network connection just went boom so I can't really look until I log back in. I just need it to Monitor a directory for files say randomfile.030413 and then after midnight still look for randomfile.030413. So I need away to change the variable after midnight? There is maybe a better solution than the approach I'm using or your idea fits?
10 More Discussions You Might Find Interesting
1. Programming
I have a number of files of the format filename.xfr_mmddyy_%H%M%S which i get in a specified directory daily. Now i want to search in the specified directory & delete the files which are more than 2 days old .So I use a command
find $DIR/backup/* -ctime +2 -exec rm -f {} \;
But after executing... (1 Reply)
Discussion started by: dharmesht
1 Replies
2. Solaris
Hi all,
thanks in advance for reading and anyposts...
I was wondering if its possible to find all files in a directory with a specific date.
I know I can do:
but that will only give a list of files greater than todays date... Any ideas?
Thanks,
Marky Mark... (4 Replies)
Discussion started by: B14speedfreak
4 Replies
3. Shell Programming and Scripting
I want to write script for backing up archive logs files for specific date.
please give me idea for that. (2 Replies)
Discussion started by: akm9999
2 Replies
4. Filesystems, Disks and Memory
In Linux Advance server
I want to write one script for backing up files for a specific date like 24/07/2008. (3 Replies)
Discussion started by: akm9999
3 Replies
5. UNIX for Dummies Questions & Answers
I want a mechanism to monitor a folder full of files that are sensitive. I want to log all accesses,modifications and changes to any file within the folder in a log file which should give me access/modify/change times,the user id of the process which tried and the pid.
Even some idea of what to... (1 Reply)
Discussion started by: Vivek788
1 Replies
6. Shell Programming and Scripting
Hi there,
I like to ask how i shall monitor specific string or keyword in rotating log files. e.g. I have at 10 rotating logfiles.
I use the command below to grep the string, but eventually become non functional because the logfile rotates and new logfile is active.
tail -f <logfile1> |grep... (1 Reply)
Discussion started by: shtobias
1 Replies
7. UNIX Desktop Questions & Answers
Guys, I am wondering how to remove files for a specific date in a directory?
for instance when I do ls -l , i see many files. And i want to delete files for date May 15:
58252015 May 10 03:45 my_05102012.log
58252015 May 15 06:45 my_05152012.log
Thanks (8 Replies)
Discussion started by: DallasT
8 Replies
8. Shell Programming and Scripting
Dear all,
kindly i have some files with different dates i need to grep word from these files but i need to search in files with date 2012-12-02 not all files in this directory
do u have any command (4 Replies)
Discussion started by: maxim42
4 Replies
9. Shell Programming and Scripting
Hi,
I am looking to find files of a specific date.
I am on Sun Solaris so newermt doesnot work..
I thought of using mtime but not getting how to use it.
Please help me with this..
Regards
Abhinav (3 Replies)
Discussion started by: abhi1988sri
3 Replies
10. Shell Programming and Scripting
Hi there!
I was wondering if someone could help me with the following:
I'm trying to find all files within a directory which have been modified since midnight of the current date.
Any help would be appreciated.
Thank you kindly. (6 Replies)
Discussion started by: Jimmy_the_tulip
6 Replies
LEARN ABOUT PLAN9
rndc-confgen
rndc-confgen(1M) System Administration Commands rndc-confgen(1M)
NAME
rndc-confgen - rndc key generation tool
SYNOPSIS
rndc-confgen [-ah] [-b keysize] [-c keyfile] [-k keyname] [-p port] [-r randomfile] [-s address] [-t chrootdir] [-u user]
DESCRIPTION
The rndc-confgen utility generates configuration files for rndc(1M). This utility can be used as a convenient alternative to writing by
hand the rndc.conf(4) file and the corresponding controls and key statements in named.conf(4). It can also be run with the -a option to set
up a rndc.key file and avoid altogether the need for a rndc.conf file and a controls statement.
OPTIONS
The following options are supported:
-a Perform automatic rndc configuration. This option creates a file rndc.key in /etc (or however sysconfdir was specified when
BIND was built) that is read by both rndc and named(1M) on startup. The rndc.key file defines a default command channel and
authentication key allowing rndc to communicate with named with no further configuration. Running rndc-confgen with -a
specified allows BIND 9 and rndc to be used as drop-in replacements for BIND 8 and ndc, with no changes to the existing
BIND 8 named.conf file.
-b keysize Specify the size of the authentication key in bits. The keysize argument must be between 1 and 512 bits; the default is
128.
-c keyfile Used with the -a option to specify an alternate location for rndc.key.
-h Print a short summary of the options and arguments to rndc-confgen.
-k keyname Specify the key name of the rndc authentication key. The keyname argument must be a valid domain name. The default is rndc-
key.
-p port Specify the command channel port where named listens for connections from rndc. The default is 953.
-r randomfile Specify 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. The randomdev argument specifies the name of a char-
acter 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 address Specify the IP address where named listens for command channel connections from rndc. The default is the loopback address
127.0.0.1.
-t chrootdir Used with the -a option to specify a directory where named will run after the root directory is changed with chroot(1M). An
additional copy of the rndc.key will be written relative to this directory so that it will be found by the named in the new
directory.
-u user Used with the -a option to set the owner of the rndc.key file generated. If -t is also specified only the file in the
chroot area has its owner changed.
EXAMPLES
Example 1: Use rndc no manual configuration.
rndc-confgen -a
Example 2: Print a sample rndc.conf file and corresponding controls and key statements to be manually inserted into named.conf.
rndc-confgen
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|Availability |SUNWbind9 |
|Interface Stability |External |
+-----------------------------+-----------------------------+
SEE ALSO
chroot(1M), named(1M), rndc(1M), named.conf(4), rndc.conf(4), attributes(5)
BIND 9 Administrator Reference Manual
NOTES
Source for BIND9 is available in the SUNWbind9S package.
SunOS 5.10 15 Dec 2004 rndc-confgen(1M)