Re: date set unable

2002-11-07 Thread iulian
Roman Neuhauser wrote:

 # [EMAIL PROTECTED] / 2002-11-06 13:56:02 +:
  Adam Weinberger wrote:
 
   -BEGIN PGP SIGNED MESSAGE-
   Hash: SHA1
  
(11.06.2002 @ 0530 PST): iulian said, in 1.0K: 
I can modify the date, but doesn't remeains like I do! I mean when I do
date -v -1H
everything looks fine, but if I do
date
the output is the same with the date before.
end of Re: date set unable from iulian 
  
   - From date(1):
  
   - -v  Adjust (i.e., take the current date and display the result
   of the adjustment; not actually set the date)
  
   - -Adam
  
 
  OK then, but why do I want to adjust the date if I don't want to set it?

 because you might want to display a future/past date.
 what happens when you try to set the date without the -v flag?


I did it! Adam help me. Anyway, thanks all for your answers.
date hhmm


 --
 If you cc me or take the list(s) out completely I'll most likely ignore
 your message.  see http://www.eyrie.org./~eagle/faqs/questions.html


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: date set unable

2002-11-06 Thread Adam Weinberger
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

 (11.06.2002 @ 0556 PST): iulian said, in 1.1K: 
 Adam Weinberger wrote:
   (11.06.2002 @ 0530 PST): iulian said, in 1.0K: 
   I can modify the date, but doesn't remeains like I do! I mean when I do
   date -v -1H
   everything looks fine, but if I do
   date
   the output is the same with the date before.
   end of Re: date set unable from iulian 
 
  - From date(1):
 
  - -v  Adjust (i.e., take the current date and display the result
  of the adjustment; not actually set the date)
 
  - -Adam
 
 
 OK then, but why do I want to adjust the date if I don't want to set it?
 end of Re: date set unable from iulian 

I rarely use date(1) to set the date. I mean, when I set the date I
always use date(1), but most of the time I use date(1) to format the
date for scripts.

If you want to set the date, you use the format date MMDDHHMM or
date HHMM. Read the manpage.

- -Adam


- --
Adam Weinberger
[EMAIL PROTECTED]
[EMAIL PROTECTED]

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (FreeBSD)

iD8DBQE9yPZEo8KM2ULHQ/0RAg7PAJoDfBmlEcDrnGsrVUzXB/N61h3/cQCfYd4I
Wi+0RL4U24d9kLT8gazhwNg=
=P+te
-END PGP SIGNATURE-

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: date set unable

2002-11-06 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2002-11-06 13:56:02 +:
 Adam Weinberger wrote:
 
  -BEGIN PGP SIGNED MESSAGE-
  Hash: SHA1
 
   (11.06.2002 @ 0530 PST): iulian said, in 1.0K: 
   I can modify the date, but doesn't remeains like I do! I mean when I do
   date -v -1H
   everything looks fine, but if I do
   date
   the output is the same with the date before.
   end of Re: date set unable from iulian 
 
  - From date(1):
 
  - -v  Adjust (i.e., take the current date and display the result
  of the adjustment; not actually set the date)
 
  - -Adam
 
 
 OK then, but why do I want to adjust the date if I don't want to set it?

because you might want to display a future/past date.
what happens when you try to set the date without the -v flag?

-- 
If you cc me or take the list(s) out completely I'll most likely ignore
your message.  see http://www.eyrie.org./~eagle/faqs/questions.html

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



date set unable

2002-11-05 Thread root
Hello!
I have a problem may be minor!
I set the date back with an hour, looks fine, but if I want to see the
current date, it's the same with the date before.
I want to know why, please!
Thanks!


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: date set unable

2002-11-05 Thread Roman Neuhauser
# [EMAIL PROTECTED] / 2002-11-05 16:55:42 +:
 I set the date back with an hour, looks fine, but if I want to see the
 current date, it's the same with the date before.
 I want to know why, please!

is this the problem?

roman@freepuppy ~ 1030:0  man date|col -b|grep -C1 securelevel 

 Only the superuser may set the date, and if the system securelevel (see
 securelevel(8)) is greater than 1, the time may not be changed by more
 than 1 second.
roman@freepuppy ~ 1031:0  sysctl kern.securelevel 
kern.securelevel: -1

-- 
If you cc me or take the list(s) out completely I'll most likely ignore
your message.  see http://www.eyrie.org./~eagle/faqs/questions.html

To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message



Re: date set unable

2002-11-05 Thread DaleCo Help Desk
From: root [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 05, 2002 10:55 AM
Subject: date set unable


 Hello!
 I have a problem may be minor!
 I set the date back with an hour, looks fine, but if I want to see
the
 current date, it's the same with the date before.
 I want to know why, please!
 Thanks!

I was recently dealing with a box that was several
hours behind because I'd been too busy to set up
NTP and I wasn't planning to have it on the 'Net
that long anyway.  I found the manpage for date(1)
to be quite useful, actually.

Kevin Kinsey
DaleCo, S.P.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with unsubscribe freebsd-questions in the body of the message