Sponsored Content
Full Discussion: Is rtc still needed today?
Top Forums UNIX for Dummies Questions & Answers Is rtc still needed today? Post 302179634 by bakunin on Friday 28th of March 2008 08:36:59 AM
Old 03-28-2008
You might want to read Real-time clock - Wikipedia, the free encyclopedia and this: SunOS man pages

The latter document states that "-c" "checks for DST and makes corrections if necessary. It is normally run once a day by a cron job." I presume that if you are in a timezone with a daylight savings time you will need it.

I hope this helps.

bakunin
 

6 More Discussions You Might Find Interesting

1. Solaris

crontab /usr/sbin/rtc log rc=1

I noticed in my cron log file for my solaris 8 servers the rc=1. I imagine that is return code and something did not process. Does anyone know what that is, is there fix or the implications of leaving it? Thank you > CMD: && /usr/sbin/rtc -c > /dev/null 2>&1 > root 22049 c Fri Dec 19... (1 Reply)
Discussion started by: csgonan
1 Replies

2. Shell Programming and Scripting

meaning of today=${1:-${today}}

what does today=${1:-${today}} mean??? I saw a script which has these two lines: today=`date '+%y%m%d'` today=${1:-${today}} but both gives the same value for $today user:/export/home/user>today=`date '+%y%m%d'` user:/export/home/user>echo $today 120326... (2 Replies)
Discussion started by: Vidhyaprakash
2 Replies

3. UNIX for Dummies Questions & Answers

VxWorks RTC time giving wrong value at random times

I am seeing a scenario where in if the TIMEZONE environment variable value is set to nothing i.e. putenv "TIMEZONE=" the hardware clock is +1 to software clock.Pasted below the results displayed: -> envShow (global environment) 0: TSC_TIME_FROM_RESET=420150.971529 seconds 1:... (0 Replies)
Discussion started by: snehavb
0 Replies

4. HP-UX

Need Hardware help on a RP4440 that lost the RTC and does not see both hard drives

Since the lost of the rtc all the settings became default. Does anyone remember what needs to be reset to discover both Hard drives? It sees the DVD and the scsi disk (intscsib.0) in 0/1/1/1.0 (disk 1 slot) but not 0/1/1/0.1 (intscsia.1)(disk 0 slot). Right now, from the service menu, scsi shows... (3 Replies)
Discussion started by: mrmurdock
3 Replies

5. Shell Programming and Scripting

Help Needed for creating the folder by checking today's date and, take backup using rsync command

How to create a shell script to create a folder by using the today's date to take backup using rsync command on every evening around 7 pm. Kindly help. Thanks. To be more precise, I want to create a script which matches the today's date with server's date format, if matches then creates the... (2 Replies)
Discussion started by: bakula10
2 Replies

6. Programming

Ardunio Tick-Tock DS1307 RTC Shield Basics

This arrived in the mail from China a few days ago and, for the small money, has been a lot of fun. Clock Shield RTC module DS1307 module Multifunction Expansion Board with 4 Digit Display Light Sensor and Thermistor For Arduino This board is a lot of fun for a few bucks. It has a low... (1 Reply)
Discussion started by: Neo
1 Replies
nvram-wakeup(8) 						   NVRAM WakeUp 						   nvram-wakeup(8)

NAME
nvram-wakeup - a (small) program that can read and write the WakeUp time in the BIOS. SYNOPSIS
nvram-wakeup [-l|--syslog] [-D|--debug] [-A|--directisa] [-N|--nowrite] [-d|--disable] [-s|--settime time] [-C|--configfile filename] [-I|--iwname string] [-v|--version] [-h|--help] DESCRIPTION
nvram-wakeup is a (small) program that can read and write the WakeUp time in the BIOS (via /dev/nvram on kernels >= 2.4.6 or using direct I/O). On this WakeUp time the computer will be powered on automatically from the soft-off state. OPTIONS
If run without options, nvram-wakeup will read the current wakeup settings from the NVRAM and print them on stdout. -l, --syslog This option will let nvram-wakeup log all output via syslogd to the system log instead of stdout/stderr. This option should always be the first one. -D, --debug This option enables printing debug messages. -A, --directisa Use direct I/O port access to access the nvram instead of /dev/nvram. This option must be used if the configuration option upper_method is set. The device /dev/rtc is still used. WARNING: If you use the option --directisa and some other programm tries to access nvram and/or rtc at the same time, you might screw up all your nvram (i.e. all CMOS settings). -N, --nowrite This option disables writing into the nvram and rtc devices. But all the values for the bytes are calculated. Write them down and go set the same date/time via BIOS Setup, run nvram-wakeup and see if the values you written down correspond to the values set by the BIOS. -s time, --settime=time Specify the time on which the computer should be up and running. The time is specified as a time_t value, i.e., number of seconds since epoch (Jan 1 1970, 00:00:00). See EXAMPLES below on how to set a "human readable" wakeup time. Set time to 0 to disable the wakeup feature. You can specify multiple -s|--settime options on the command line, as far as they all have the same time value. See EXAMPLES below. -d, --disable A synonym for --settime=0 -C filename, --configfile=filename Read mainboard configuration from configuration file filename. See nvram-wakeup.conf(5) for information on the syntax of the file. See BOARD CONFIGURATION below for general information on getting board configurations. -I name, --iwname=name If the DMI entries of your mainboard are broken, you may specify a DMI infowriter name here. (it's the name of one of the functions from nvram-wakeup-mb.c) If you specify --configfile as well as the --iwname option, then --iwname is ignored. See BOARD CONFIGURATION below for general information on getting board configurations. -w minutes, --wakeupbefore=minutes Specify how many minutes before the programmed wakeuptime the computer should wake up. The default is to start 5 minutes before the programmed wakeup time. -h, --help Print a help message and exit. -v, --version Display version and author information. BOARD CONFIGURATION
By default, the mainboard is autodetected by reading DMI information from the BIOS. If the DMI entries are broken, you can specify the name of the infowriter to be used with the --iwname option. This only works if the board configuration is aleready compiled into the pro- gram. The list of existing infowriters can be found in the source. Example: On my Biostar M6VCG the whole DMI entry is broken (maybe a BIOS update would help, but I never tried it), but the configuration of the board is known, so only the autodetection doesn't work. Thus look up (in boards.yaml) the name of the infowriter to beused, which is 'bio_m6vcg' and call nvram-wakeup --iwname bio_m6vcg If nvram-wakeup doesn't know anything about your board, you can put the board configuration into a file and pass the file name via the --configfile option to nvram-wakeup. Look nvram-wakeup.conf(5) for more information on the configuration file syntax. If you specify --configfile as well as the --iwname option, then --iwname is ignored. EXAMPLES
You can specify multiple -d or -s options at the command line, but they must specify the same time, e.g. nvram-wakeup --settime=0 -s0 -s 0 -d -ddds0 # is O.K. nvram-wakeup -s1002722247 -s1002722247 # is O.K. nvram-wakeup -s1002722247 -s1002722248 # is not O.K. nvram-wakeup -s1002722247 --disable # is not O.K. If you want the machine to be up and running in 20 minutes, call nvram-wakeup -s $((`date +%s` + 20 * 60)) If you want the machine to be up and running at 18:30 today, call nvram-wakeup -s `date +%s -d "18:30"` Note that this is really "today" so if you run this after 18:30, the time will be in the past. If you want the machine to be up and running on a particular day, at a particular time, say at 18:30 on Apr. 23rd, call nvram-wakeup -s `date +%s -d "Apr 23 18:30"` For "tomorrow" you can use something like that: nvram-wakeup -s $((`date +%s -d "18:30"` + 60*60*24)) EXIT STATUS
0 Successful program execution. The new date and time were set successfully. 1 Successful program execution. The computer must be rebooted for the changes to take effect. 2 An error occured. Something went wrong. FILES
/dev/nvram NVRAM character device. This one is used for reading/writing the nvram values if the command line option --directisa is not used. /dev/rtc RTC character device. This one is used to determine if the RTC clock is running localtime or UTC/GMT. Furthermore, some motherboards use the RTC alarm time for the wakeup feature. /dev/mem Memory character device. This one is used to get DMI information for board autodetection. nvram-wakeup.conf Configuration file for a mainboard not supported out-of-the-box. See nvram-wakeup.conf(5) for information on the syntax of the file. SEE ALSO
nvram-wakeup.conf(5) HOMEPAGE
http://sf.net/projects/nvram-wakeup/ AUTHOR
Written by Sergei Haller <Sergei.Haller@math.uni-giessen.de>. REPORTING BUGS
Report bugs at the bug tracking system (see HOMEPAGE) or on the mailing list nvram-wakeup-devel@lists.sourceforge.net COPYRIGHT
Copyright (C) 2001-2004 Sergei Haller. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MER- CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA Linux May 08 2004 nvram-wakeup(8)
All times are GMT -4. The time now is 05:20 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy