HI all,
I would like to know how the user can be restricted for entering only the number and not characters in sheel scripts..
Suppose code is like this
echo 'Enter the number'
read Value
Now user may enter 'a' as value...
But i want to disallow him for entering characters other than... (3 Replies)
My script is taking a file "input.in" as input for running the script. My worry is that i need to execute the script only if the file is present, if it's not don't perform the next commands.
Just to have a check at the beginning of the script : If "input.in" exists, then go on. If it's does not... (4 Replies)
Hi,
I had input file with below data,
abcdefghij;20100903040607;1234567891;GLOBAL;
Having values of fields with seperated by semi-colon (;) and ended with line feed (\n).
Through shell script, how can I check the field formatting?
Thanks in advance. (18 Replies)
HI all,
I want to script where all the server names will be in a text file like
server1
server2
server3 . and the script should take servernames from a text file and perform copy of files if the files are not present on those servers.after which it should take next servername till the end of... (0 Replies)
Hi Guys
I have a Requirement that the input will be given and i have to check whether the input is a Year or not.
For Example
2004,2009 and so on forth will be considered a year and anything else like
12:15 or else will not be.
Have built the below Code
set -x
echo " Enter... (6 Replies)
HI
Input file.txt
ABCDE1 JFHFJFJF3 10
ABCDE2 JFHFJFJF5 20
ABCDE3 JFHFJFJF5 30
ABCDE4 JFHFJFJF6 -
ABCDE5 JFHFJFJF6 20
ABCDE6 JFHFJFJF6 90
ABCDE7 JFHFJFJF6 9
ABCDE8 JFHFJFJF6
I want to check third column if data missing or wrong data the echo massage and out from script.
1.... (8 Replies)
Hello,
I have a comma delimited file such as:
cat /statistics/support/input.txt
ID,Serial,quantitity,atribute1,atribute2
1,89569698,5,800,9900,
1,35568658,8,1200,5550
1,89569698,8,320,5500
1,68753584,85,450,200
ID should always have 1 digit, Serial 8 digits, and the others may... (2 Replies)
Hi,
I need my script to check if the user enters 3 values if not 5 values to my script and alert if the input has any other number of values.
for example:
./myscript.sh 22 56 3221 - > correct
./myscript.sh 22 56 3221 45 777 -> correct
./myscript.sh 22 56 3221 45 -> incorrect
Please... (6 Replies)
I have a file number.txt.I need to get 2 inputs from the terminal like a=100 and b=200.If a and b are there in the file,then check if a < b,print "less".If a is not there in the file,print "a is missing" or if b is not there in the file,print "b is missing".
number.txt:
100 200 300 (2 Replies)
Discussion started by: aneeta13
2 Replies
LEARN ABOUT NETBSD
daily.conf
DAILY(5) BSD File Formats Manual DAILY(5)NAME
daily, daily.conf -- daily maintenance
DESCRIPTION
The /etc/daily script is run, by default, every night on a NetBSD system. The /etc/daily.conf file specifies which of the standard daily
services are performed.
The variables described below can be set to ``YES'' or ``NO'' in the /etc/daily.conf file. Most default to ``YES'', but not all. Check the
/etc/defaults/daily.conf file if you are in doubt. (Note that you should never edit /etc/defaults/daily.conf directly, as it is often
replaced during system upgrades.)
find_core This runs find(1) over the entire local filesystem, looking for core files.
run_msgs This runs msgs(1) with the -c argument.
expire_news This runs the /etc/expire.news script.
purge_accounting This ages accounting files in /var/account.
run_calendar This runs calendar(1) with the -a argument.
check_disks This uses the df(1) and dump(8) to give disk status, and also reports failed raid(4) components.
show_remote_fs In check_disks, show remote file systems, which are not reported on by default.
check_mailq This runs mailq(1).
check_network This runs netstat(1) with the -i argument, and also checks the rwhod(8) database, and runs ruptime(1) if there are
hosts in /var/rwho.
full_netstat By default, check_network outputs a summarized version of the netstat(1) report. If a full version of the output
run with the -inv options is desired, set this variable.
run_fsck This runs fsck(8) with the -n option.
run_rdist This runs rdist(1) with /etc/Distfile.
run_security This runs the /etc/security script looking for possible security problems with the system.
run_skeyaudit Runs the skeyaudit(1) program to check the S/Key database and informs users of S/Keys that are about to expire.
run_makemandb If the /etc/man.conf file exists, runs the makemandb(8) utility to update the man.db database for use by
apropos(1).
fetch_pkg_vulnerabilities Refreshes the local database of package vulnerabilities. See the settings in security.conf(5) for details on the
actual package checks.
The variables described below can be set to modify the tests:
find_core_ignore_fstypes Lists filesystem types to ignore during the find_core phase. Prefixing the type with a '!' inverts the match.
For example, 'procfs !local' will ignore 'procfs' type filesystems and filesystems that are not 'local'.
find_core_ignore_paths Lists paths to ignore during the find_core phase. For example, '/export' will not descend into any directories
under the '/export' hierarchy. This, on a file server, allows to skip user data while still scanning system files.
run_fsck_flags Extra options to be passed to fsck(8) if run_fsck is enabled.
send_empty_security If set, the report generated by the run_security phase will always be sent, even if it is empty.
pkgdb_dir DEPRECATED. Please set PKGDB_DIR in pkg_install.conf(5) instead.
If defined, points to the location of the packages database. Defaults to /var/db/pkg.
FILES
/etc/daily daily maintenance script
/etc/daily.conf daily maintenance configuration
/etc/defaults/daily.conf default settings, overridden by /etc/daily.conf
/etc/daily.local local site additions to /etc/daily
SEE ALSO monthly(5), security.conf(5), weekly(5)HISTORY
The /etc/daily.conf file appeared in NetBSD 1.3.
BSD July 30, 2012 BSD