10-29-2017
In my environment
On every 5 mins the directory have the files ,stay there for 1-2 mins and processed.
I want to write a script which run on every hour for 5 mins to and keep looking for the the if it found then do further calculation as a part of my requirement and exit.
Kindly guide how can i loop ls to the directory and keep checking the files if it found apply the next logic else keep looking till it not found. Once found it should come out of the condition and exit.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi, Need help for a Script for checking and reporting database file sizes in a directory.
Request you to please give your valuable inputs.
Thanks a lot in advance.
Best Regards,
Marconi (1 Reply)
Discussion started by: marconi
1 Replies
2. Shell Programming and Scripting
Hey everyone,
I'm writing a shell script that needs to loop thru a directory and check a defined type of files(.df).
I use "checkfile.x" which is a compiled program to check those files. Sintaxis : checkfile.x DatefileName.df
The program displays something like this:
File: kanswer.df -... (1 Reply)
Discussion started by: Testing_Yorsh
1 Replies
3. Shell Programming and Scripting
Hi Gurus,
I am new to unix and need your help to make a shell script. I have a requirement, would appreciate if you could please help me on it:
Requirement:
-------------
I will pass 2 parameters in shell script 1). Directory name say errors 2). file extension say .log
First of all this... (4 Replies)
Discussion started by: anshulinpc
4 Replies
4. Shell Programming and Scripting
foreach file ($dir1/*)
if ($file ~ *.txt) then
echo "Skipping $file (is a txt file)"
endif
end
that should work right guys? :confused: (15 Replies)
Discussion started by: pantelis
15 Replies
5. Shell Programming and Scripting
Hi,
I want my script to check for availability of few files contineously for some time.
Lets say from 10:00 AM to 10:30 AM script should keep checking on a particular location for each file one by one. If all the files are available then only it should complete the next processing part, else... (2 Replies)
Discussion started by: amit.mathur08
2 Replies
6. Shell Programming and Scripting
Hi,
How do i check if I have read/write/execute rights on a UNIX directory?
What I'm doing is checking read access on the files but i also want to check if user has rights on the direcory in whcih these files are present.
if then......
And I check if the directory exists by using... (6 Replies)
Discussion started by: chetancrsp18
6 Replies
7. UNIX for Dummies Questions & Answers
Hi ,
I am using the below script for checking for a file in a folder.
if ;
then
echo 0
else
echo 1
fi
Is there any way we can check for files which are starting with GL*.csv.What I am trying to do is , I have to check in a folder for the GL*.csv files if there are any files they I... (6 Replies)
Discussion started by: wangkc
6 Replies
8. Shell Programming and Scripting
Hello,
I need to write a script to check the files in one folder , if that folder doesn't have files generated from last 1 hr then we need to send mail to particular persons.
So Can you please help me to write script to check the files and send email.
Thank you.. (1 Reply)
Discussion started by: archana23
1 Replies
9. Shell Programming and Scripting
Hi,
My requirement is,there is a directory location like:
:camp/current/
In this location there can be different flat files that are generated in a single day with same header and the data will be different, differentiated by timestamp, so i need to verify how many files are generated... (10 Replies)
Discussion started by: srikanth_sagi
10 Replies
10. Shell Programming and Scripting
Hi,
Could you please assist how to move the gz files which are older than the 90 days from one folder to another folder ,before that it need to check the file system named "nfs" if size is less than 90 or not. If size is above 90 then it shouldn't perform file move and exit the script throwing... (4 Replies)
Discussion started by: venkat918
4 Replies
LEARN ABOUT DEBIAN
named-checkconf
NAMED-CHECKCONF(8) BIND9 NAMED-CHECKCONF(8)
NAME
named-checkconf - named configuration file syntax checking tool
SYNOPSIS
named-checkconf [-h] [-v] [-j] [-t directory] {filename} [-p] [-z]
DESCRIPTION
named-checkconf checks the syntax, but not the semantics, of a named configuration file. The file is parsed and checked for syntax errors,
along with all files included by it. If no file is specified, /etc/named.conf is read by default.
Note: files that named reads in separate parser contexts, such as rndc.key and bind.keys, are not automatically read by named-checkconf.
Configuration errors in these files may cause named to fail to run, even if named-checkconf was successful. named-checkconf can be run on
these files explicitly, however.
OPTIONS
-h
Print the usage summary and exit.
-t directory
Chroot to directory so that include directives in the configuration file are processed as if run by a similarly chrooted named.
-v
Print the version of the named-checkconf program and exit.
-p
Print out the named.conf and included files in canonical form if no errors were detected.
-z
Perform a test load of all master zones found in named.conf.
-j
When loading a zonefile read the journal if it exists.
filename
The name of the configuration file to be checked. If not specified, it defaults to /etc/named.conf.
RETURN VALUES
named-checkconf returns an exit status of 1 if errors were detected and 0 otherwise.
SEE ALSO
named(8), named-checkzone(8), BIND 9 Administrator Reference Manual.
AUTHOR
Internet Systems Consortium
COPYRIGHT
Copyright (C) 2004, 2005, 2007, 2009 Internet Systems Consortium, Inc. ("ISC")
Copyright (C) 2000-2002 Internet Software Consortium.
BIND9 June 14, 2000 NAMED-CHECKCONF(8)