RE: [SuSE Linux] Clock question
Ok ok, isn't it possible to know which hour it is unless i'm root ? That's funny, but all users would like to be able to read it ! -----Message d'origine----- De: Lenz Grimmer [SMTP:grimmer@suse.de] Date: mardi 8 decembre 1998 12:45 A: 'suse-linux-e@suse.com' Objet: Re: [SuSE Linux] Clock question Hi, On Tue, 8 Dec 1998, Stephane Fromholtz wrote:
steph@mailhost:/sbin > clock -r clock: unable to get I/O port access: Operation not permitted
How do I allow this operation ?
Become root! :) Bye, LenZ ------------------------------------------------------------------ Lenz Grimmer SuSE GmbH <A HREF="mailto:grimmer@suse.de">mailto:grimmer@suse.de</A> Schanzaeckerstr. 10 <A HREF="http://www.suse.de/~grimmer"><A HREF="http://www.suse.de/~grimmer</A">http://www.suse.de/~grimmer</A</A>> 90443 Nuernberg, Germany - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>> - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Hi, On Tue, 8 Dec 1998, Stephane Fromholtz wrote:
Ok ok, isn't it possible to know which hour it is unless i'm root ? That's funny, but all users would like to be able to read it !
Have you tried "date"? "clock" is used for reading the _Hardware_ clock. Linux has it's own system clock, which can be queried with "date". See the manpage to "clock" and "date" and /usr/do/howto/mini/Clock.gz for further info. Bye, LenZ ------------------------------------------------------------------ Lenz Grimmer SuSE GmbH <A HREF="mailto:grimmer@suse.de">mailto:grimmer@suse.de</A> Schanzaeckerstr. 10 <A HREF="http://www.suse.de/~grimmer"><A HREF="http://www.suse.de/~grimmer</A">http://www.suse.de/~grimmer</A</A>> 90443 Nuernberg, Germany - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
-----Original Message----- From: owner-suse-linux-e@suse.com [<A HREF="mailto:owner-suse-linux-e@suse.com]On">mailto:owner-suse-linux-e@suse.com]On</A> Behalf Of Stephane Fromholtz Sent: Tuesday, December 08, 1998 12:43 PM To: 'suse-linux-e@suse.com' Subject: RE: [SuSE Linux] Clock question
Ok ok, isn't it possible to know which hour it is unless i'm root ? That's funny, but all users would like to be able to read it !
-----Message d'origine----- De: Lenz Grimmer [SMTP:grimmer@suse.de] Date: mardi 8 decembre 1998 12:45 A: 'suse-linux-e@suse.com' Objet: Re: [SuSE Linux] Clock question
Hi,
On Tue, 8 Dec 1998, Stephane Fromholtz wrote:
steph@mailhost:/sbin > clock -r clock: unable to get I/O port access: Operation not permitted
How do I allow this operation ?
Become root! :)
Bye, LenZ
------------------------------------------------------------------ Lenz Grimmer SuSE GmbH <A HREF="mailto:grimmer@suse.de">mailto:grimmer@suse.de</A> Schanzaeckerstr. 10 <A HREF="http://www.suse.de/~grimmer"><A HREF="http://www.suse.de/~grimmer</A">http://www.suse.de/~grimmer</A</A>> 90443 Nuernberg, Germany
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Try the date command. It will tell you the hour... The commands in /sbin directories are for root only. Kieran - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>> - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
Hello:-) Kieran Sullivan wrote:
Try the date command. It will tell you the hour...
yeppers, and it works really great in a script too:-) My better half wanted the modem to be noisy during certain hours and quiet other hours. So after much testing to get the hang of the bash syntaks and things, I got one that worked and incorporated into my diald connect script. So now between 9am and 9pm we've got a noisy modem otherwise the modem just quietly goes about its business:-) To make this work, I expanded the original connect script that was distributed with diald so I could use a total of 5 initiation strings (I just like to make sure the modem is setup the way it should be (must be all that past sysop experience:-) BTW, the fifth initiation string just sets the registers, the time test is done on the 4th initiation string:-) As far as all the variables that can be used to format the response of "date" try man date:-) But for my purposes..... CTIME=`date +%H%M` STIME=900 ETIME=2100 if [ $CTIME -ge $STIME -a $CTIME -le $ETIME ] ; then USE = $INIT_4 else USE = $INIT_4'M0' fi Then the chat stuff for initializing the modem, with the usual ABORT, though I did add REPORT ERROR in the initiation sequence. As far as the actual dialout sequence, I added REPORT CONNECT. Then whenever I call chat, use -f /var/log/chat and it reports connect rate and what errors occurred (if any:-).
Ok ok, isn't it possible to know which hour it is unless i'm root ? That's funny, but all users would like to be able to read it !
Try making a script #!/bin/sh # # tod - Reports the time of day # echo `date +%H:%M # # The above reports the time in military format, check "man date" to get the # full formatting capabilities:-) # -- cya l8r Leon McClatchey leonmcclatchey@homemail.com Linux User 78912 (Win95 Box) - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
use 'chmod' and give permission to users! Stephane Fromholtz wrote:
Ok ok, isn't it possible to know which hour it is unless i'm root ? That's funny, but all users would like to be able to read it !
-----Message d'origine----- De: Lenz Grimmer [SMTP:grimmer@suse.de] Date: mardi 8 decembre 1998 12:45 A: 'suse-linux-e@suse.com' Objet: Re: [SuSE Linux] Clock question
Hi,
On Tue, 8 Dec 1998, Stephane Fromholtz wrote:
steph@mailhost:/sbin > clock -r clock: unable to get I/O port access: Operation not permitted
How do I allow this operation ?
Become root! :)
Bye, LenZ
------------------------------------------------------------------ Lenz Grimmer SuSE GmbH <A HREF="mailto:grimmer@suse.de">mailto:grimmer@suse.de</A> Schanzaeckerstr. 10 <A HREF="http://www.suse.de/~grimmer"><A HREF="http://www.suse.de/~grimmer</A">http://www.suse.de/~grimmer</A</A>> 90443 Nuernberg, Germany
- To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>> - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
-- Luca Colombi System Administrator The Hub Communications Co. Ltd. The Farmhouse Syon Park Middlesex TW8 8JF Tel: +44(0)181 560 9222 Fax: +44(0)181 560 9333 E-mail: luca@thehub.co.uk URL: <A HREF="http://www.thehub.co.uk"><A HREF="http://www.thehub.co.uk</A">http://www.thehub.co.uk</A</A>> - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
On Tue, 8 Dec 1998, Stephane Fromholtz wrote:
Ok ok, isn't it possible to know which hour it is unless i'm root ? That's funny, but all users would like to be able to read it !
Now I, Fredrik, write: Yups! Just enter 'date'! If you use a soundcard, 'saytime', might be a program to try! -- // Fredrik Wendt - To get out of this list, please send email to majordomo@suse.com with this text in its body: unsubscribe suse-linux-e Check out the SuSE-FAQ at <A HREF="http://www.suse.com/Support/Doku/FAQ/"><A HREF="http://www.suse.com/Support/Doku/FAQ/</A">http://www.suse.com/Support/Doku/FAQ/</A</A>> and the archiv at <A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html"><A HREF="http://www.suse.com/Mailinglists/suse-linux-e/index.html</A">http://www.suse.com/Mailinglists/suse-linux-e/index.html</A</A>>
participants (6)
-
ceda@cpu.nu
-
grimmer@suse.de
-
ksullivan@bfsec.bt.co.uk
-
leonmcclatchey@homemail.com
-
luca@thehub.co.uk
-
Stephane.Fromholtz@dynamit-nobel.fr