Jump to content

OT: I'm goin' all ol' skool on y'all!


Super Bass

Recommended Posts

  • Members

I need some help with Telnet! :facepalm:

 

Ok, so I'm trying to update the time on my Linksys WRT54GL router because it doesn't seem to want to pull it from any NTP servers yet my ADSL modem will. :idk:

 

The router runs on Linux and I'm accessing it by telnet. I got in ok and have done a few things fine but my limited knowledge of it is impeding me. I can't figure out how to update the time. I can get it to show me the time using the time command but I'm stumped after that.

 

These are the options it's giving me.

 

BusyBox v1.12.3 (2008-12-14 02:54:58 PST) multi-call binary


Usage: date [OPTION]... [+FMT] [TIME]


Display time (using +FMT), or set time


Options:

-u Work in UTC (don't convert to local time)

-R Output RFC-822 compliant date string

-I[sPEC] Output ISO-8601 compliant date string

SPEC='date' (default) for date only,

'hours', 'minutes', or 'seconds' for date and

time to the indicated precision

-d TIME Display TIME, not 'now'

-r FILE Display last modification time of FILE

[-s] TIME Set time to TIME

-D FMT Use FMT for str->date conversion


Recognized formats for TIME:

hh:mm[:ss]

[YYYY.]MM.DD-hh:mm[:ss]

YYYY-MM-DD hh:mm[:ss]

MMDDhhmm[[YY]YY][.ss]

 

Any help would be appreciated! :)

Link to comment
Share on other sites

  • Members

the format for updateing the time on linux is "date MMDDHHmmYYYY"

just in case it isn't obvious:

M month

D date

H hours (remember to use 24 hour format, not 12 hour)

m minutes

Y year

 

How that actually works out depends on how that linux distro interprets the time....most distros prefer the system clock set to GMT and then it has configuration files which handle the time zone offset. When you run the date command with no arguments it should display what timezone it's currently set for. Check that and it should give you an idea on whether you need to feed it local time or GMT

Link to comment
Share on other sites

  • Members

the format for updateing the time on linux is "date MMDDHHmmYYYY"

just in case it isn't obvious:

M month

D date

H hours (remember to use 24 hour format, not 12 hour)

m minutes

Y year


How that actually works out depends on how that linux distro interprets the time....most distros prefer the system clock set to GMT and then it has configuration files which handle the time zone offset. When you run the date command with no arguments it should display what timezone it's currently set for. Check that and it should give you an idea on whether you need to feed it local time or GMT

 

{censored} yeah! :thu:

 

That worked, thanks man! :)

 

BusyBox v1.12.3 (2008-12-14 02:54:58 PST) built-in shell (ash)

Enter 'help' for a list of built-in commands.


# date

Thu Jan 1 02:34:05 GMT 1970

# date 013119062009

Sat Jan 31 19:06:00 GMT 2009

#

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...