Hello all,
why does Solaris still have
1 2 * * * [ -x /usr/sbin/rtc ] && /usr/sbin/rtc -c > /dev/null 2>&1
in root's crontab, when /usr/sbin/rtc isn't installed with the the OS?
--
why does Solaris still have
1 2 * * * [ -x /usr/sbin/rtc ] && /usr/sbin/rtc -c > /dev/null 2>&1
in root's crontab, when /usr/sbin/rtc isn't installed with the the OS?
--
> 1 2 * * * [ -x /usr/sbin/rtc ] && /usr/sbin/rtc -c > /dev/null 2>&1
> in root's crontab, when /usr/sbin/rtc isn't installed with the the OS?
% ls -l /usr/sbin/rtc
-r-xr-xr-x 1 root bin 8812 Jan 6 2000 /usr/sbin/rtc
% uname -p
i386
It looks like it's an optional package (SUNWcsu). The [ -x /usr/sbin/rtc ]Quote:>Hello all,
>why does Solaris still have
>1 2 * * * [ -x /usr/sbin/rtc ] && /usr/sbin/rtc -c > /dev/null 2>&1
>in root's crontab, when /usr/sbin/rtc isn't installed with the the OS?
--
Genuity, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
> Hello all,
> why does Solaris still have
> 1 2 * * * [ -x /usr/sbin/rtc ] && /usr/sbin/rtc -c > /dev/null 2>&1
> in root's crontab, when /usr/sbin/rtc isn't installed with the the OS?
Because the default crontab is standard across both the SPARC and X86
architectures. rtc is an x86-only thing, as the rtc manpage reveals:
Maintenance Commands rtc(1M)
____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Architecture | IA |
|_____________________________|_____________________________|
| Availability | SUNWcsu |
|_____________________________|_____________________________|
IA is Intel Architecture.
--
Tony
>>why does Solaris still have
>>1 2 * * * [ -x /usr/sbin/rtc ] && /usr/sbin/rtc -c > /dev/null 2>&1
>>in root's crontab, when /usr/sbin/rtc isn't installed with the the OS?
>It looks like it's an optional package (SUNWcsu). The [ -x /usr/sbin/rtc ]
>part of the command tests to see whether the package is installed or not.
I think you mean: /usr/sbin/rtc is part of the x86 version of SUNWcsu, but
not part of the sparc version.
Chris Thompson
Email: cet1 [at] cam.ac.uk
> >Hello all,
> >why does Solaris still have
> >1 2 * * * [ -x /usr/sbin/rtc ] && /usr/sbin/rtc -c > /dev/null 2>&1
> >in root's crontab, when /usr/sbin/rtc isn't installed with the the OS?
> It looks like it's an optional package (SUNWcsu). The [ -x /usr/sbin/rtc ]
> part of the command tests to see whether the package is installed or not.
SUNWcsu is hardly optional - the "cs" bit of "csu" means "Core Solaris".
--
Tony Walton
>> why does Solaris still have
>> 1 2 * * * [ -x /usr/sbin/rtc ] && /usr/sbin/rtc -c > /dev/null 2>&1
>> in root's crontab, when /usr/sbin/rtc isn't installed with the the OS?
> Because the default crontab is standard across both the SPARC and X86
> architectures. rtc is an x86-only thing, as the rtc manpage reveals:
I've found this quite confusing when I noticed it the first time, too.
mp.
--
Martin Paul | Systems Administrator
Liechtensteinstrasse 22, A-1090 Wien | Tel: 01 4277 38803
http://www.par.univie.ac.at/ | Fax: 01 4277 9388
Probably because the fewer files that are different across architectures,Quote:>So the question should be rephrased. As the SUNWcsr package which
>contains root's crontab surely isn't the same for sparc and x86
>anyway, why not have rtc removed from root's crontab in the
>sparc version of the package ?
--
Genuity, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
Just looking through my crontab for root, and there's this command in there
called /usr/sbin/rtc, which the comments claim checks for DST and adjusts
the clock accordingly and all that.
But! I don't have that command in /usr/sbin, or anywhere else for that matter.
And my clock changed just fine during the last time change.
The man page is there, though, and tells me all about it. What up?
3. no /usr/sbin/rtc, but in crontab
6. CD-RW and CD-ROM under Linux
8. /usr/sbin/traceroute ha1 ksh: /usr/sbin/traceroute: not found
10. help with /sbin and /usr/sbin permissions
11. Slackware and /usr/sbin/sbin/
12. dangerous permissions on /sbin and /usr/sbin