Members Super Bass Posted January 30, 2009 Members Share Posted January 30, 2009 I need some help with Telnet! 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. 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 More sharing options...
Members Wanderlusterer Posted January 31, 2009 Members Share Posted January 31, 2009 These are the options it's giving me. Any help would be appreciated! I've never used it, but could it be just as easy as doing this: [-s] 2009-01-30 21:46[:50] ? Link to comment Share on other sites More sharing options...
Members Super Bass Posted January 31, 2009 Author Members Share Posted January 31, 2009 nah, thats not working Link to comment Share on other sites More sharing options...
Members Super Bass Posted January 31, 2009 Author Members Share Posted January 31, 2009 Its currently telling me that the date and time is 1st January 1970 @ 5:08am Link to comment Share on other sites More sharing options...
Members Wanderlusterer Posted January 31, 2009 Members Share Posted January 31, 2009 Its currently telling me that the date and time is 1st January 1970 @ 5:08am lol, sorry I couldn't be of any help dude. Good luck with it! Link to comment Share on other sites More sharing options...
Members Super Bass Posted January 31, 2009 Author Members Share Posted January 31, 2009 thanks anyways man! Link to comment Share on other sites More sharing options...
Members Hearafter Posted January 31, 2009 Members Share Posted January 31, 2009 Link to comment Share on other sites More sharing options...
Members Perfessor Posted January 31, 2009 Members Share Posted January 31, 2009 One of those time machine computers. How much are those? Link to comment Share on other sites More sharing options...
Members Roguetitan Posted January 31, 2009 Members Share Posted January 31, 2009 Did You say something? Link to comment Share on other sites More sharing options...
Members Chaos5522 Posted January 31, 2009 Members Share Posted January 31, 2009 the format for updateing the time on linux is "date MMDDHHmmYYYY"just in case it isn't obvious:M monthD dateH hours (remember to use 24 hour format, not 12 hour)m minutesY 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 More sharing options...
Members Super Bass Posted January 31, 2009 Author Members Share Posted January 31, 2009 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! 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 More sharing options...
Members misterhinkydink Posted January 31, 2009 Members Share Posted January 31, 2009 Your not using Linux but Busybox. I use the bottom format which is the "standard" UNIX format. where:MMDDhhmm[[YY]YY][.ss] local time:01311242200900 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.