public inbox for speakup@linux-speakup.org
 help / color / mirror / Atom feed
* my mutt shit itself
@  Alex Snow
   ` Help with date and redhat 9 Sina Bahram
  0 siblings, 1 reply; 23+ messages in thread
From: Alex Snow @  UTC (permalink / raw)
  To: speakup

Hi all. I just noticed a weird problem with mutt 1.4.1i. all of a sudden 
it claims that up and down arrow is not bound when I try to arrow 
between messages. It just started doing this this morning and I haven't 
reconfigured anything lately...anyone have any suggestions? I tried 
uninstalling and reinstalling mutt but that didn't help.


-- 
Who is General Failure and why is he reading my hard disk?


^ permalink raw reply	[flat|nested] 23+ messages in thread

* Help with date and redhat 9
   my mutt shit itself Alex Snow
@  ` Sina Bahram
     ` Chuck Hallenbeck
                     ` (2 more replies)
  0 siblings, 3 replies; 23+ messages in thread
From: Sina Bahram @  UTC (permalink / raw)
  To: speakup

Hello all

I am having a bit of a problem with the date command. I want to set it
up so that my computer can fetch the current date from a time server.
However, I know of no time servers and I also have no clue how to pass
the correct arguments to the date command. Can anyone help me out on
this?

What should be the commands to the date command to tell it to look at
some server for the time, and set the system time accordingly.
I am on eastern standard time if that helps.

Thanks,
Sina

No trees were destroyed in sending this message. However, a large number
of electrons were terribly inconvenienced. 





^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Help with date and redhat 9
   ` Help with date and redhat 9 Sina Bahram
@    ` Chuck Hallenbeck
       ` Gregory Nowak
                       ` (2 more replies)
     ` Adam Myrow
     ` Alex Snow
  2 siblings, 3 replies; 23+ messages in thread
From: Chuck Hallenbeck @  UTC (permalink / raw)
  To: speakup

Hi Sima,

Here is how I do it. The following command is executed as root:

netdate -l 0 tick.wustl.edu tcp bumpy.braille.uwo.ca

It is probably best to make an alias for this, or put it in a
script or something. In my case, I execute that line within my
ip-up script.

It will update your time within the kernel, but not reset the
hardware clock. That turns out to be no problem on this slackware
system, since slackware copies the time from the kernel into the
hardware clock during the shutdown process, and the only other
time the hardware clock is referenced is during bootup, I
believe.

The line above references two time servers, in case one or the
other might be down for some reason.

Hope that helps

Chuck


On Sun, 26 Oct 2003, Sina Bahram wrote:

> Hello all
>
> I am having a bit of a problem with the date command. I want to set it
> up so that my computer can fetch the current date from a time server.
> However, I know of no time servers and I also have no clue how to pass
> the correct arguments to the date command. Can anyone help me out on
> this?
>
> What should be the commands to the date command to tell it to look at
> some server for the time, and set the system time accordingly.
> I am on eastern standard time if that helps.
>
> Thanks,
> Sina
>
> No trees were destroyed in sending this message. However, a large number
> of electrons were terribly inconvenienced.
>
>
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>

-- 
The Moon is Waxing Crescent (3% of Full)
 Get my public key from website, http://www.mhonline.net/~chuckh



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Help with date and redhat 9
   ` Help with date and redhat 9 Sina Bahram
     ` Chuck Hallenbeck
@    ` Adam Myrow
       ` Sina Bahram
     ` Alex Snow
  2 siblings, 1 reply; 23+ messages in thread
From: Adam Myrow @  UTC (permalink / raw)
  To: speakup

You don't use date to set the time from a time server.  The date command
is only for manually setting the date.  There are several ways to set the
time from a remote server.  Some commands include netdate, rdate, and
ntpdate.  If you have it, ntpdate is the most accurate.  You can pass it
multiple servers, and it will pick the best one.  If you are really into
time, you could have ntpd running all the time to actually adjust the
speed of the clock within Linux so that it stays within a few MS of the
correct time.  For a good list of time servers, go to
http://www.eecis.udel.edu/~mills/ntp/servers.html and find several near
you with open access.  Then, assuming you have ntpdate available, you
could try "ntpdate server."  For example, "ntpdate time.nist.gov
time-b.nist.gov" would ask ntpdate to get the time from two of the NIST
servers and pick the one it thinks is the most accurate and set your clock
to it.  Hope this helps.



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Help with date and redhat 9
     ` Chuck Hallenbeck
@      ` Gregory Nowak
       ` Sina Bahram
       ` Barry Pollock
  2 siblings, 0 replies; 23+ messages in thread
From: Gregory Nowak @  UTC (permalink / raw)
  To: speakup

Hey, I didn't know Kirk ran a time server.

Greg


On Sun, Oct 26, 2003 at 05:18:14PM -0500, Chuck Hallenbeck wrote:
> Hi Sima,
> 
> Here is how I do it. The following command is executed as root:
> 
> netdate -l 0 tick.wustl.edu tcp bumpy.braille.uwo.ca
> 
> It is probably best to make an alias for this, or put it in a
> script or something. In my case, I execute that line within my
> ip-up script.
> 
> It will update your time within the kernel, but not reset the
> hardware clock. That turns out to be no problem on this slackware
> system, since slackware copies the time from the kernel into the
> hardware clock during the shutdown process, and the only other
> time the hardware clock is referenced is during bootup, I
> believe.
> 
> The line above references two time servers, in case one or the
> other might be down for some reason.
> 
> Hope that helps
> 
> Chuck
> 
> 

-- 
Free domains: http://www.eu.org/ or mail dns-manager@EU.org



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Help with date and redhat 9
   ` Help with date and redhat 9 Sina Bahram
     ` Chuck Hallenbeck
     ` Adam Myrow
@    ` Alex Snow
       ` Sina Bahram
  2 siblings, 1 reply; 23+ messages in thread
From: Alex Snow @  UTC (permalink / raw)
  To: speakup

Hi. the timeserver I've been using is time-nw.nist.gov. I have cron 
run this once an hour by putting a sscript like this in my 
/etc/cron.hourly directory:
#!/bin/bash
ntpdate -b time-nw.nist.gov

this tells ntpdate to get the current time from time-nw.nist.gov. I'm 
not sure if readhat has a cron.hourly directory but if it doesn't just 
add the above command to your crontab with crontab -e. read the 
manpage for crontab for more info on the syntax.
On 
Sun, Oct 26, 2003 at 04:20:49PM -0500, Sina Bahram wrote:
> Hello all
> 
> I am having a bit of a problem with the date command. I want to set it
> up so that my computer can fetch the current date from a time server.
> However, I know of no time servers and I also have no clue how to pass
> the correct arguments to the date command. Can anyone help me out on
> this?
> 
> What should be the commands to the date command to tell it to look at
> some server for the time, and set the system time accordingly.
> I am on eastern standard time if that helps.
> 
> Thanks,
> Sina
> 
> No trees were destroyed in sending this message. However, a large number
> of electrons were terribly inconvenienced. 
> 
> 
> 
> 
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup

-- 
Who is General Failure and why is he reading my hard disk?


^ permalink raw reply	[flat|nested] 23+ messages in thread

* RE: Help with date and redhat 9
     ` Chuck Hallenbeck
       ` Gregory Nowak
@      ` Sina Bahram
       ` Barry Pollock
  2 siblings, 0 replies; 23+ messages in thread
From: Sina Bahram @  UTC (permalink / raw)
  To: speakup

Hi Chuck

Thanks so much for your help; however, when I typed that command in, I
received the message of netdate not being a valid command. Is that maybe
a slackware specific program?

Thanks,
Sina

No trees were destroyed in sending this message. However, a large number
of electrons were terribly inconvenienced. 

-----Original Message-----
From: speakup-admin@braille.uwo.ca [mailto:speakup-admin@braille.uwo.ca]
On Behalf Of Chuck Hallenbeck
Sent: Sunday, October 26, 2003 5:18 PM
To: speakup@braille.uwo.ca
Subject: Re: Help with date and redhat 9


Hi Sima,

Here is how I do it. The following command is executed as root:

netdate -l 0 tick.wustl.edu tcp bumpy.braille.uwo.ca

It is probably best to make an alias for this, or put it in a script or
something. In my case, I execute that line within my ip-up script.

It will update your time within the kernel, but not reset the hardware
clock. That turns out to be no problem on this slackware system, since
slackware copies the time from the kernel into the hardware clock during
the shutdown process, and the only other time the hardware clock is
referenced is during bootup, I believe.

The line above references two time servers, in case one or the other
might be down for some reason.

Hope that helps

Chuck


On Sun, 26 Oct 2003, Sina Bahram wrote:

> Hello all
>
> I am having a bit of a problem with the date command. I want to set it

> up so that my computer can fetch the current date from a time server. 
> However, I know of no time servers and I also have no clue how to pass

> the correct arguments to the date command. Can anyone help me out on 
> this?
>
> What should be the commands to the date command to tell it to look at 
> some server for the time, and set the system time accordingly. I am on

> eastern standard time if that helps.
>
> Thanks,
> Sina
>
> No trees were destroyed in sending this message. However, a large 
> number of electrons were terribly inconvenienced.
>
>
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca 
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>

-- 
The Moon is Waxing Crescent (3% of Full)
 Get my public key from website, http://www.mhonline.net/~chuckh


_______________________________________________
Speakup mailing list
Speakup@braille.uwo.ca
http://speech.braille.uwo.ca/mailman/listinfo/speakup




^ permalink raw reply	[flat|nested] 23+ messages in thread

* RE: Help with date and redhat 9
     ` Alex Snow
@      ` Sina Bahram
  0 siblings, 0 replies; 23+ messages in thread
From: Sina Bahram @  UTC (permalink / raw)
  To: speakup

It seems I'm the only person in the world without netdate or ntpdate.
Any other commands I can use. I'm amazed that redhat 9, full
installation, doesn't have either of those two commands availible.

Take care,
Sina

No trees were destroyed in sending this message. However, a large number
of electrons were terribly inconvenienced. 

-----Original Message-----
From: speakup-admin@braille.uwo.ca [mailto:speakup-admin@braille.uwo.ca]
On Behalf Of Alex Snow
Sent: Sunday, October 26, 2003 5:29 PM
To: speakup@braille.uwo.ca
Subject: Re: Help with date and redhat 9


Hi. the timeserver I've been using is time-nw.nist.gov. I have cron 
run this once an hour by putting a sscript like this in my 
/etc/cron.hourly directory:
#!/bin/bash
ntpdate -b time-nw.nist.gov

this tells ntpdate to get the current time from time-nw.nist.gov. I'm 
not sure if readhat has a cron.hourly directory but if it doesn't just 
add the above command to your crontab with crontab -e. read the 
manpage for crontab for more info on the syntax.
On 
Sun, Oct 26, 2003 at 04:20:49PM -0500, Sina Bahram wrote:
> Hello all
> 
> I am having a bit of a problem with the date command. I want to set it

> up so that my computer can fetch the current date from a time server. 
> However, I know of no time servers and I also have no clue how to pass

> the correct arguments to the date command. Can anyone help me out on 
> this?
> 
> What should be the commands to the date command to tell it to look at 
> some server for the time, and set the system time accordingly. I am on

> eastern standard time if that helps.
> 
> Thanks,
> Sina
> 
> No trees were destroyed in sending this message. However, a large 
> number of electrons were terribly inconvenienced.
> 
> 
> 
> 
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca 
> http://speech.braille.uwo.ca/mailman/listinfo/speakup

-- 
Who is General Failure and why is he reading my hard disk?

_______________________________________________
Speakup mailing list
Speakup@braille.uwo.ca
http://speech.braille.uwo.ca/mailman/listinfo/speakup




^ permalink raw reply	[flat|nested] 23+ messages in thread

* RE: Help with date and redhat 9
     ` Adam Myrow
@      ` Sina Bahram
         ` Sina Bahram
         ` Chuck Hallenbeck
  0 siblings, 2 replies; 23+ messages in thread
From: Sina Bahram @  UTC (permalink / raw)
  To: speakup

Thanks for your response.

The only one of those I have is rdate. I'm going to go see if I can
figure out how to pass a server or multiple servers to it. and then
figure out how to add it to the chron like Alex was talking about.

Take care,
Sina

No trees were destroyed in sending this message. However, a large number
of electrons were terribly inconvenienced. 

-----Original Message-----
From: speakup-admin@braille.uwo.ca [mailto:speakup-admin@braille.uwo.ca]
On Behalf Of Adam Myrow
Sent: Sunday, October 26, 2003 5:20 PM
To: speakup@braille.uwo.ca
Subject: Re: Help with date and redhat 9


You don't use date to set the time from a time server.  The date command
is only for manually setting the date.  There are several ways to set
the time from a remote server.  Some commands include netdate, rdate,
and ntpdate.  If you have it, ntpdate is the most accurate.  You can
pass it multiple servers, and it will pick the best one.  If you are
really into time, you could have ntpd running all the time to actually
adjust the speed of the clock within Linux so that it stays within a few
MS of the correct time.  For a good list of time servers, go to
http://www.eecis.udel.edu/~mills/ntp/servers.html and find several near
you with open access.  Then, assuming you have ntpdate available, you
could try "ntpdate server."  For example, "ntpdate time.nist.gov
time-b.nist.gov" would ask ntpdate to get the time from two of the NIST
servers and pick the one it thinks is the most accurate and set your
clock to it.  Hope this helps.


_______________________________________________
Speakup mailing list
Speakup@braille.uwo.ca
http://speech.braille.uwo.ca/mailman/listinfo/speakup




^ permalink raw reply	[flat|nested] 23+ messages in thread

* RE: Help with date and redhat 9
       ` Sina Bahram
@        ` Sina Bahram
           ` Chuck Hallenbeck
         ` Chuck Hallenbeck
  1 sibling, 1 reply; 23+ messages in thread
From: Sina Bahram @  UTC (permalink / raw)
  To: speakup

I got rdate to work; however, now I am having trouble with the crontab
-e command and option.
It tells me that I am doing something invalid and that the correct usage
is...and then it brings up this list and e is definitely on there as
edit. So I don't know what I am doing wrong. I tried reading the man
page, and that was about as helpful as nothing. How do I also give the
crontab root access, because if I am only logged in as Sina, I still
want the job to be run every five minutes or whenever my interval is.

Thanks,
Sina

No trees were destroyed in sending this message. However, a large number
of electrons were terribly inconvenienced. 




^ permalink raw reply	[flat|nested] 23+ messages in thread

* RE: Help with date and redhat 9
       ` Sina Bahram
         ` Sina Bahram
@        ` Chuck Hallenbeck
           ` Sina Bahram
  1 sibling, 1 reply; 23+ messages in thread
From: Chuck Hallenbeck @  UTC (permalink / raw)
  To: speakup

Sima,

I don't believe netdate is slackware specific, but I have no
experience with other distros, so I cannot say how common it is.

If you are using a dialup connection you might want to be careful
about putting your network time command in a crontab, since it
would try to execute whether or not you are connected when its
scheduled time came around. That is why I put mine in the ip-up
script instead of crontab. That script only executes when a ppp
connection is established. I am not sure it is all that necessary
to get the correct time every hour either, unless you are
supervising a space launch or something <smile>. The thing is,
the kernel time mechanism is much more accurate than the battery
operated hardware clock, and ought not to drift much at all over
the period of a day. Perhaps it would matter more if your system
is up continuously for long periods. I boot up each morning and
bring my system down at night, which is when my hardware clock
gets set from the time the kernel is keeping.

Chuck


On Sun, 26 Oct 2003, Sina Bahram wrote:

> Thanks for your response.
>
> The only one of those I have is rdate. I'm going to go see if I can
> figure out how to pass a server or multiple servers to it. and then
> figure out how to add it to the chron like Alex was talking about.
>
> Take care,
> Sina

-- 
The Moon is Waxing Crescent (3% of Full)
 Get my public key from website, http://www.mhonline.net/~chuckh



^ permalink raw reply	[flat|nested] 23+ messages in thread

* RE: Help with date and redhat 9
         ` Sina Bahram
@          ` Chuck Hallenbeck
             ` Sina Bahram
  0 siblings, 1 reply; 23+ messages in thread
From: Chuck Hallenbeck @  UTC (permalink / raw)
  To: speakup

Sima,

If you create items in crontab when you are logged on as root,
those items will execute even when you change to a normal user.
No problem. The only time I create an item in crontab for a
nomral user is when that item needs to modify one of that user's
files for some reason.

Chuck


-- 
The Moon is Waxing Crescent (3% of Full)
 Get my public key from website, http://www.mhonline.net/~chuckh



^ permalink raw reply	[flat|nested] 23+ messages in thread

* RE: Help with date and redhat 9
         ` Chuck Hallenbeck
@          ` Sina Bahram
             ` Alex Snow
  0 siblings, 1 reply; 23+ messages in thread
From: Sina Bahram @  UTC (permalink / raw)
  To: speakup

Wel I got rdate to work, but now I can't get crontab to work. And I am
on a cable connection and I keep the redhat box up continuously. I boot
it occasionally on a weekly or byweekly basis, but otherwise I just keep
it up and running, so that should be ok. I would probably schedule the
chron for daily and also at startup and shutdown, but I have no clue how
to do that.

Thanks,
Sina

No trees were destroyed in sending this message. However, a large number
of electrons were terribly inconvenienced. 

-----Original Message-----
From: speakup-admin@braille.uwo.ca [mailto:speakup-admin@braille.uwo.ca]
On Behalf Of Chuck Hallenbeck
Sent: Sunday, October 26, 2003 7:04 PM
To: speakup@braille.uwo.ca
Subject: RE: Help with date and redhat 9



Sima,

I don't believe netdate is slackware specific, but I have no experience
with other distros, so I cannot say how common it is.

If you are using a dialup connection you might want to be careful about
putting your network time command in a crontab, since it would try to
execute whether or not you are connected when its scheduled time came
around. That is why I put mine in the ip-up script instead of crontab.
That script only executes when a ppp connection is established. I am not
sure it is all that necessary to get the correct time every hour either,
unless you are supervising a space launch or something <smile>. The
thing is, the kernel time mechanism is much more accurate than the
battery operated hardware clock, and ought not to drift much at all over
the period of a day. Perhaps it would matter more if your system is up
continuously for long periods. I boot up each morning and bring my
system down at night, which is when my hardware clock gets set from the
time the kernel is keeping.

Chuck


On Sun, 26 Oct 2003, Sina Bahram wrote:

> Thanks for your response.
>
> The only one of those I have is rdate. I'm going to go see if I can 
> figure out how to pass a server or multiple servers to it. and then 
> figure out how to add it to the chron like Alex was talking about.
>
> Take care,
> Sina

-- 
The Moon is Waxing Crescent (3% of Full)
 Get my public key from website, http://www.mhonline.net/~chuckh


_______________________________________________
Speakup mailing list
Speakup@braille.uwo.ca
http://speech.braille.uwo.ca/mailman/listinfo/speakup




^ permalink raw reply	[flat|nested] 23+ messages in thread

* RE: Help with date and redhat 9
           ` Chuck Hallenbeck
@            ` Sina Bahram
               ` Chuck Hallenbeck
  0 siblings, 1 reply; 23+ messages in thread
From: Sina Bahram @  UTC (permalink / raw)
  To: speakup

So the question is. How do I exactly create items in crontab because the
-e option is giving me a lot of grief *smile*.

Thanks,
Sina

No trees were destroyed in sending this message. However, a large number
of electrons were terribly inconvenienced. 

-----Original Message-----
From: speakup-admin@braille.uwo.ca [mailto:speakup-admin@braille.uwo.ca]
On Behalf Of Chuck Hallenbeck
Sent: Sunday, October 26, 2003 7:09 PM
To: speakup@braille.uwo.ca
Subject: RE: Help with date and redhat 9


Sima,

If you create items in crontab when you are logged on as root, those
items will execute even when you change to a normal user. No problem.
The only time I create an item in crontab for a nomral user is when that
item needs to modify one of that user's files for some reason.

Chuck


-- 
The Moon is Waxing Crescent (3% of Full)
 Get my public key from website, http://www.mhonline.net/~chuckh


_______________________________________________
Speakup mailing list
Speakup@braille.uwo.ca
http://speech.braille.uwo.ca/mailman/listinfo/speakup




^ permalink raw reply	[flat|nested] 23+ messages in thread

* RE: Help with date and redhat 9
             ` Sina Bahram
@              ` Chuck Hallenbeck
                 ` Sina Bahram
  0 siblings, 1 reply; 23+ messages in thread
From: Chuck Hallenbeck @  UTC (permalink / raw)
  To: speakup

Okay, here is how to do crontab...

First, make sure your favorite editor is specified in an
environment variable called "EDITOR" and also in one called
"VISUAL". When you run crontab with the -e option it will invoke
one or the other of those, I forget which! I use "ed" in mine,
but you might prefer another editor.

So now become root and do this:

crontab -e

Now you are your favorite editor, and you create a one line entry
consisting of five time specifiers and one command, all on one
line. The time specifiers are separated from each other by a
space and might be an asterisk. They are as follows:

specifier #1 is the minute, from 0 to 59.

specifier #2 is the hour, from 0 to 23

specifier #3 is the day of the month, from 1 to 31

specifier #4 is the month, from 1 to 12

specifier #5 is the day of the week, and I forget if this is 0 to
6 or 1 to 7.

So to execute a command say at half past seven every morning, you
would make the line look like this:

30 7 * * * the-command-goes-here

Be sure the 30 starts in column 1!

So what you must do is decide what time each day you want your
command to run, and make a line like the example. If 7:30 AM is
not convenient, pick another time and use the specifiers to say
when.

It is a good idea to redirect output from your command to
/dev/null, otherwise you get email to root! Also, you have to
supply the full path to your command, since no path is in effect
during the crontab execution.

When you have done all that, just save your work and exit, and
the rest is automatic.


Hope this helps.

Chuck




-- 
The Moon is Waxing Crescent (3% of Full)
 Get my public key from website, http://www.mhonline.net/~chuckh



^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Help with date and redhat 9
     ` Chuck Hallenbeck
       ` Gregory Nowak
       ` Sina Bahram
@      ` Barry Pollock
         ` Sina Bahram
  2 siblings, 1 reply; 23+ messages in thread
From: Barry Pollock @  UTC (permalink / raw)
  To: speakup

in redhat you can set the clock using rdate
rredhat puts rdate in /usr/bin
and debian puts it in /usr/sbin


here is my debian script
You can put it in cron.daily.


I call mine
/etc/cron.daily/gettime

#!/bin/sh

/usr/sbin/rdate -s time1.unet.brandeis.edu







On Sun, 26 Oct 2003, Chuck Hallenbeck wrote:

> Hi Sima,
>
> Here is how I do it. The following command is executed as root:
>
> netdate -l 0 tick.wustl.edu tcp bumpy.braille.uwo.ca
>
> It is probably best to make an alias for this, or put it in a
> script or something. In my case, I execute that line within my
> ip-up script.
>
> It will update your time within the kernel, but not reset the
> hardware clock. That turns out to be no problem on this slackware
> system, since slackware copies the time from the kernel into the
> hardware clock during the shutdown process, and the only other
> time the hardware clock is referenced is during bootup, I
> believe.
>
> The line above references two time servers, in case one or the
> other might be down for some reason.
>
> Hope that helps
>
> Chuck
>
>
> On Sun, 26 Oct 2003, Sina Bahram wrote:
>
> > Hello all
> >
> > I am having a bit of a problem with the date command. I want to set it
> > up so that my computer can fetch the current date from a time server.
> > However, I know of no time servers and I also have no clue how to pass
> > the correct arguments to the date command. Can anyone help me out on
> > this?
> >
> > What should be the commands to the date command to tell it to look at
> > some server for the time, and set the system time accordingly.
> > I am on eastern standard time if that helps.
> >
> > Thanks,
> > Sina
> >
> > No trees were destroyed in sending this message. However, a large number
> > of electrons were terribly inconvenienced.
> >
> >
> >
> >
> > _______________________________________________
> > Speakup mailing list
> > Speakup@braille.uwo.ca
> > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> >
>
> --
> The Moon is Waxing Crescent (3% of Full)
>  Get my public key from website, http://www.mhonline.net/~chuckh
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>


^ permalink raw reply	[flat|nested] 23+ messages in thread

* RE: Help with date and redhat 9
               ` Chuck Hallenbeck
@                ` Sina Bahram
  0 siblings, 0 replies; 23+ messages in thread
From: Sina Bahram @  UTC (permalink / raw)
  To: speakup

Thanks so much, that's what I needed to know.

I appreciate it.

Take care,
Sina

No trees were destroyed in sending this message. However, a large number
of electrons were terribly inconvenienced. 

-----Original Message-----
From: speakup-admin@braille.uwo.ca [mailto:speakup-admin@braille.uwo.ca]
On Behalf Of Chuck Hallenbeck
Sent: Sunday, October 26, 2003 7:38 PM
To: speakup@braille.uwo.ca
Subject: RE: Help with date and redhat 9


Okay, here is how to do crontab...

First, make sure your favorite editor is specified in an environment
variable called "EDITOR" and also in one called "VISUAL". When you run
crontab with the -e option it will invoke one or the other of those, I
forget which! I use "ed" in mine, but you might prefer another editor.

So now become root and do this:

crontab -e

Now you are your favorite editor, and you create a one line entry
consisting of five time specifiers and one command, all on one line. The
time specifiers are separated from each other by a space and might be an
asterisk. They are as follows:

specifier #1 is the minute, from 0 to 59.

specifier #2 is the hour, from 0 to 23

specifier #3 is the day of the month, from 1 to 31

specifier #4 is the month, from 1 to 12

specifier #5 is the day of the week, and I forget if this is 0 to 6 or 1
to 7.

So to execute a command say at half past seven every morning, you would
make the line look like this:

30 7 * * * the-command-goes-here

Be sure the 30 starts in column 1!

So what you must do is decide what time each day you want your command
to run, and make a line like the example. If 7:30 AM is not convenient,
pick another time and use the specifiers to say when.

It is a good idea to redirect output from your command to /dev/null,
otherwise you get email to root! Also, you have to supply the full path
to your command, since no path is in effect during the crontab
execution.

When you have done all that, just save your work and exit, and the rest
is automatic.


Hope this helps.

Chuck




-- 
The Moon is Waxing Crescent (3% of Full)
 Get my public key from website, http://www.mhonline.net/~chuckh


_______________________________________________
Speakup mailing list
Speakup@braille.uwo.ca
http://speech.braille.uwo.ca/mailman/listinfo/speakup




^ permalink raw reply	[flat|nested] 23+ messages in thread

* RE: Help with date and redhat 9
       ` Barry Pollock
@        ` Sina Bahram
  0 siblings, 0 replies; 23+ messages in thread
From: Sina Bahram @  UTC (permalink / raw)
  To: speakup

Thanks for the help.

Take care,
Sina

No trees were destroyed in sending this message. However, a large number
of electrons were terribly inconvenienced. 

-----Original Message-----
From: speakup-admin@braille.uwo.ca [mailto:speakup-admin@braille.uwo.ca]
On Behalf Of Barry Pollock
Sent: Sunday, October 26, 2003 7:40 PM
To: speakup@braille.uwo.ca
Subject: Re: Help with date and redhat 9


in redhat you can set the clock using rdate
rredhat puts rdate in /usr/bin
and debian puts it in /usr/sbin


here is my debian script
You can put it in cron.daily.


I call mine
/etc/cron.daily/gettime

#!/bin/sh

/usr/sbin/rdate -s time1.unet.brandeis.edu







On Sun, 26 Oct 2003, Chuck Hallenbeck wrote:

> Hi Sima,
>
> Here is how I do it. The following command is executed as root:
>
> netdate -l 0 tick.wustl.edu tcp bumpy.braille.uwo.ca
>
> It is probably best to make an alias for this, or put it in a script 
> or something. In my case, I execute that line within my ip-up script.
>
> It will update your time within the kernel, but not reset the hardware

> clock. That turns out to be no problem on this slackware system, since

> slackware copies the time from the kernel into the hardware clock 
> during the shutdown process, and the only other time the hardware 
> clock is referenced is during bootup, I believe.
>
> The line above references two time servers, in case one or the other 
> might be down for some reason.
>
> Hope that helps
>
> Chuck
>
>
> On Sun, 26 Oct 2003, Sina Bahram wrote:
>
> > Hello all
> >
> > I am having a bit of a problem with the date command. I want to set 
> > it up so that my computer can fetch the current date from a time 
> > server. However, I know of no time servers and I also have no clue 
> > how to pass the correct arguments to the date command. Can anyone 
> > help me out on this?
> >
> > What should be the commands to the date command to tell it to look 
> > at some server for the time, and set the system time accordingly. I 
> > am on eastern standard time if that helps.
> >
> > Thanks,
> > Sina
> >
> > No trees were destroyed in sending this message. However, a large 
> > number of electrons were terribly inconvenienced.
> >
> >
> >
> >
> > _______________________________________________
> > Speakup mailing list
> > Speakup@braille.uwo.ca 
> > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> >
>
> --
> The Moon is Waxing Crescent (3% of Full)
>  Get my public key from website, http://www.mhonline.net/~chuckh
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca 
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>

_______________________________________________
Speakup mailing list
Speakup@braille.uwo.ca
http://speech.braille.uwo.ca/mailman/listinfo/speakup




^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Help with date and redhat 9
           ` Sina Bahram
@            ` Alex Snow
               ` Sina Bahram
  0 siblings, 1 reply; 23+ messages in thread
From: Alex Snow @  UTC (permalink / raw)
  To: speakup

did you set the VISUAL and EDITOR variables to your favorite editor? 
If you wanted to use nano for example you'd do
export VISUAL=/usr/bin/nano
export EDITOR=/usr/bin/nano
note that EDITOR and VISUAL are in all caps.

On Sun, Oct 26, 2003 at 
07:21:37PM -0500, Sina Bahram wrote:
> Wel I got rdate to work, but now I can't get crontab to work. And I am
> on a cable connection and I keep the redhat box up continuously. I boot
> it occasionally on a weekly or byweekly basis, but otherwise I just keep
> it up and running, so that should be ok. I would probably schedule the
> chron for daily and also at startup and shutdown, but I have no clue how
> to do that.
> 
> Thanks,
> Sina
> 
> No trees were destroyed in sending this message. However, a large number
> of electrons were terribly inconvenienced. 
> 
> -----Original Message-----
> From: speakup-admin@braille.uwo.ca [mailto:speakup-admin@braille.uwo.ca]
> On Behalf Of Chuck Hallenbeck
> Sent: Sunday, October 26, 2003 7:04 PM
> To: speakup@braille.uwo.ca
> Subject: RE: Help with date and redhat 9
> 
> 
> 
> Sima,
> 
> I don't believe netdate is slackware specific, but I have no experience
> with other distros, so I cannot say how common it is.
> 
> If you are using a dialup connection you might want to be careful about
> putting your network time command in a crontab, since it would try to
> execute whether or not you are connected when its scheduled time came
> around. That is why I put mine in the ip-up script instead of crontab.
> That script only executes when a ppp connection is established. I am not
> sure it is all that necessary to get the correct time every hour either,
> unless you are supervising a space launch or something <smile>. The
> thing is, the kernel time mechanism is much more accurate than the
> battery operated hardware clock, and ought not to drift much at all over
> the period of a day. Perhaps it would matter more if your system is up
> continuously for long periods. I boot up each morning and bring my
> system down at night, which is when my hardware clock gets set from the
> time the kernel is keeping.
> 
> Chuck
> 
> 
> On Sun, 26 Oct 2003, Sina Bahram wrote:
> 
> > Thanks for your response.
> >
> > The only one of those I have is rdate. I'm going to go see if I can 
> > figure out how to pass a server or multiple servers to it. and then 
> > figure out how to add it to the chron like Alex was talking about.
> >
> > Take care,
> > Sina
> 
> -- 
> The Moon is Waxing Crescent (3% of Full)
>  Get my public key from website, http://www.mhonline.net/~chuckh
> 
> 
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
> 
> 
> 
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup

-- 
Who is General Failure and why is he reading my hard disk?


^ permalink raw reply	[flat|nested] 23+ messages in thread

* RE: Help with date and redhat 9
             ` Alex Snow
@              ` Sina Bahram
                 ` Gregory Nowak
                 ` Alex Snow
  0 siblings, 2 replies; 23+ messages in thread
From: Sina Bahram @  UTC (permalink / raw)
  To: speakup

I have got everything working now except for one thing. I realized that
my knowledge of VI which is the editor crontab is using, is rather
dotted.

After I get out of insert mode with escape, how do I get to the place
where I can type wq to tell it to write and quit?

Thanks,
Sina

No trees were destroyed in sending this message. However, a large number
of electrons were terribly inconvenienced. 

-----Original Message-----
From: speakup-admin@braille.uwo.ca [mailto:speakup-admin@braille.uwo.ca]
On Behalf Of Alex Snow
Sent: Sunday, October 26, 2003 9:03 PM
To: speakup@braille.uwo.ca
Subject: Re: Help with date and redhat 9


did you set the VISUAL and EDITOR variables to your favorite editor? 
If you wanted to use nano for example you'd do
export VISUAL=/usr/bin/nano
export EDITOR=/usr/bin/nano
note that EDITOR and VISUAL are in all caps.

On Sun, Oct 26, 2003 at 
07:21:37PM -0500, Sina Bahram wrote:
> Wel I got rdate to work, but now I can't get crontab to work. And I am

> on a cable connection and I keep the redhat box up continuously. I 
> boot it occasionally on a weekly or byweekly basis, but otherwise I 
> just keep it up and running, so that should be ok. I would probably 
> schedule the chron for daily and also at startup and shutdown, but I 
> have no clue how to do that.
> 
> Thanks,
> Sina
> 
> No trees were destroyed in sending this message. However, a large 
> number of electrons were terribly inconvenienced.
> 
> -----Original Message-----
> From: speakup-admin@braille.uwo.ca 
> [mailto:speakup-admin@braille.uwo.ca]
> On Behalf Of Chuck Hallenbeck
> Sent: Sunday, October 26, 2003 7:04 PM
> To: speakup@braille.uwo.ca
> Subject: RE: Help with date and redhat 9
> 
> 
> 
> Sima,
> 
> I don't believe netdate is slackware specific, but I have no 
> experience with other distros, so I cannot say how common it is.
> 
> If you are using a dialup connection you might want to be careful 
> about putting your network time command in a crontab, since it would 
> try to execute whether or not you are connected when its scheduled 
> time came around. That is why I put mine in the ip-up script instead 
> of crontab. That script only executes when a ppp connection is 
> established. I am not sure it is all that necessary to get the correct

> time every hour either, unless you are supervising a space launch or 
> something <smile>. The thing is, the kernel time mechanism is much 
> more accurate than the battery operated hardware clock, and ought not 
> to drift much at all over the period of a day. Perhaps it would matter

> more if your system is up continuously for long periods. I boot up 
> each morning and bring my system down at night, which is when my 
> hardware clock gets set from the time the kernel is keeping.
> 
> Chuck
> 
> 
> On Sun, 26 Oct 2003, Sina Bahram wrote:
> 
> > Thanks for your response.
> >
> > The only one of those I have is rdate. I'm going to go see if I can
> > figure out how to pass a server or multiple servers to it. and then 
> > figure out how to add it to the chron like Alex was talking about.
> >
> > Take care,
> > Sina
> 
> --
> The Moon is Waxing Crescent (3% of Full)
>  Get my public key from website, http://www.mhonline.net/~chuckh
> 
> 
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca 
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
> 
> 
> 
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca 
> http://speech.braille.uwo.ca/mailman/listinfo/speakup

-- 
Who is General Failure and why is he reading my hard disk?

_______________________________________________
Speakup mailing list
Speakup@braille.uwo.ca
http://speech.braille.uwo.ca/mailman/listinfo/speakup




^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Help with date and redhat 9
               ` Sina Bahram
@                ` Gregory Nowak
                   ` Sina Bahram
                 ` Alex Snow
  1 sibling, 1 reply; 23+ messages in thread
From: Gregory Nowak @  UTC (permalink / raw)
  To: speakup

If you want to give commands to vi, you  need to proceed them with a
colon ":". So, if you're out of insert or append mode by hitting
escape, and you give the command ":wq" followed by enter, vi will save
the file and quit.

Hth.

Greg


On Sun, Oct 26, 2003 at 09:30:17PM -0500, Sina Bahram wrote:
> I have got everything working now except for one thing. I realized that
> my knowledge of VI which is the editor crontab is using, is rather
> dotted.
> 
> After I get out of insert mode with escape, how do I get to the place
> where I can type wq to tell it to write and quit?
> 
> Thanks,
> Sina
> 
> No trees were destroyed in sending this message. However, a large number
> of electrons were terribly inconvenienced. 
> 

-- 
Free domains: http://www.eu.org/ or mail dns-manager@EU.org



^ permalink raw reply	[flat|nested] 23+ messages in thread

* RE: Help with date and redhat 9
                 ` Gregory Nowak
@                  ` Sina Bahram
  0 siblings, 0 replies; 23+ messages in thread
From: Sina Bahram @  UTC (permalink / raw)
  To: speakup

Thanks, I appreciate it.

Take care,
Sina

No trees were destroyed in sending this message. However, a large number
of electrons were terribly inconvenienced. 

-----Original Message-----
From: speakup-admin@braille.uwo.ca [mailto:speakup-admin@braille.uwo.ca]
On Behalf Of Gregory Nowak
Sent: Sunday, October 26, 2003 10:01 PM
To: speakup@braille.uwo.ca
Subject: Re: Help with date and redhat 9


If you want to give commands to vi, you  need to proceed them with a
colon ":". So, if you're out of insert or append mode by hitting escape,
and you give the command ":wq" followed by enter, vi will save the file
and quit.

Hth.

Greg


On Sun, Oct 26, 2003 at 09:30:17PM -0500, Sina Bahram wrote:
> I have got everything working now except for one thing. I realized 
> that my knowledge of VI which is the editor crontab is using, is 
> rather dotted.
> 
> After I get out of insert mode with escape, how do I get to the place 
> where I can type wq to tell it to write and quit?
> 
> Thanks,
> Sina
> 
> No trees were destroyed in sending this message. However, a large 
> number of electrons were terribly inconvenienced.
> 

-- 
Free domains: http://www.eu.org/ or mail dns-manager@EU.org


_______________________________________________
Speakup mailing list
Speakup@braille.uwo.ca
http://speech.braille.uwo.ca/mailman/listinfo/speakup




^ permalink raw reply	[flat|nested] 23+ messages in thread

* Re: Help with date and redhat 9
               ` Sina Bahram
                 ` Gregory Nowak
@                ` Alex Snow
  1 sibling, 0 replies; 23+ messages in thread
From: Alex Snow @  UTC (permalink / raw)
  To: speakup

vi...yuck. Using something like nano or emacs will make your life 
easier. just add it to your editor and visual variables and that'll 
become your system-wide editor.
On Sun, Oct 26, 2003 at 09:30:17PM -0500, 
Sina Bahram wrote:
> I have got everything working now except for one thing. I realized that
> my knowledge of VI which is the editor crontab is using, is rather
> dotted.
> 
> After I get out of insert mode with escape, how do I get to the place
> where I can type wq to tell it to write and quit?
> 
> Thanks,
> Sina
> 
> No trees were destroyed in sending this message. However, a large number
> of electrons were terribly inconvenienced. 
> 
> -----Original Message-----
> From: speakup-admin@braille.uwo.ca [mailto:speakup-admin@braille.uwo.ca]
> On Behalf Of Alex Snow
> Sent: Sunday, October 26, 2003 9:03 PM
> To: speakup@braille.uwo.ca
> Subject: Re: Help with date and redhat 9
> 
> 
> did you set the VISUAL and EDITOR variables to your favorite editor? 
> If you wanted to use nano for example you'd do
> export VISUAL=/usr/bin/nano
> export EDITOR=/usr/bin/nano
> note that EDITOR and VISUAL are in all caps.
> 
> On Sun, Oct 26, 2003 at 
> 07:21:37PM -0500, Sina Bahram wrote:
> > Wel I got rdate to work, but now I can't get crontab to work. And I am
> 
> > on a cable connection and I keep the redhat box up continuously. I 
> > boot it occasionally on a weekly or byweekly basis, but otherwise I 
> > just keep it up and running, so that should be ok. I would probably 
> > schedule the chron for daily and also at startup and shutdown, but I 
> > have no clue how to do that.
> > 
> > Thanks,
> > Sina
> > 
> > No trees were destroyed in sending this message. However, a large 
> > number of electrons were terribly inconvenienced.
> > 
> > -----Original Message-----
> > From: speakup-admin@braille.uwo.ca 
> > [mailto:speakup-admin@braille.uwo.ca]
> > On Behalf Of Chuck Hallenbeck
> > Sent: Sunday, October 26, 2003 7:04 PM
> > To: speakup@braille.uwo.ca
> > Subject: RE: Help with date and redhat 9
> > 
> > 
> > 
> > Sima,
> > 
> > I don't believe netdate is slackware specific, but I have no 
> > experience with other distros, so I cannot say how common it is.
> > 
> > If you are using a dialup connection you might want to be careful 
> > about putting your network time command in a crontab, since it would 
> > try to execute whether or not you are connected when its scheduled 
> > time came around. That is why I put mine in the ip-up script instead 
> > of crontab. That script only executes when a ppp connection is 
> > established. I am not sure it is all that necessary to get the correct
> 
> > time every hour either, unless you are supervising a space launch or 
> > something <smile>. The thing is, the kernel time mechanism is much 
> > more accurate than the battery operated hardware clock, and ought not 
> > to drift much at all over the period of a day. Perhaps it would matter
> 
> > more if your system is up continuously for long periods. I boot up 
> > each morning and bring my system down at night, which is when my 
> > hardware clock gets set from the time the kernel is keeping.
> > 
> > Chuck
> > 
> > 
> > On Sun, 26 Oct 2003, Sina Bahram wrote:
> > 
> > > Thanks for your response.
> > >
> > > The only one of those I have is rdate. I'm going to go see if I can
> > > figure out how to pass a server or multiple servers to it. and then 
> > > figure out how to add it to the chron like Alex was talking about.
> > >
> > > Take care,
> > > Sina
> > 
> > --
> > The Moon is Waxing Crescent (3% of Full)
> >  Get my public key from website, http://www.mhonline.net/~chuckh
> > 
> > 
> > _______________________________________________
> > Speakup mailing list
> > Speakup@braille.uwo.ca 
> > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> > 
> > 
> > 
> > _______________________________________________
> > Speakup mailing list
> > Speakup@braille.uwo.ca 
> > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> 
> -- 
> Who is General Failure and why is he reading my hard disk?
> 
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
> 
> 
> 
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup

-- 
Who is General Failure and why is he reading my hard disk?


^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~ UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
 my mutt shit itself Alex Snow
 ` Help with date and redhat 9 Sina Bahram
   ` Chuck Hallenbeck
     ` Gregory Nowak
     ` Sina Bahram
     ` Barry Pollock
       ` Sina Bahram
   ` Adam Myrow
     ` Sina Bahram
       ` Sina Bahram
         ` Chuck Hallenbeck
           ` Sina Bahram
             ` Chuck Hallenbeck
               ` Sina Bahram
       ` Chuck Hallenbeck
         ` Sina Bahram
           ` Alex Snow
             ` Sina Bahram
               ` Gregory Nowak
                 ` Sina Bahram
               ` Alex Snow
   ` Alex Snow
     ` Sina Bahram

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).