Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: halma on December 14, 2015, 11:45:04 AM

Title: command: date and the N switch ..crazy thing
Post by: halma on December 14, 2015, 11:45:04 AM
Hi,

i have an crazy problem, before i wrote this text here, i wanted to write something else about the Time and %N switch was not working anymore... but forget this

yesterday, i installed with tce-ab "coreutils.tcz" and after that i tried the "N"(*nanosecs.) switch of "date", but the command was not found by the "date" command it was late and i logged out from my ssh session (around 2hours are gone since coreutils.tcz was installed..), today i am back into the same machine and i did not an reboot, "uptime shows me around 3days uptime!", and the date --help shows me the N switch .. what the hell is going on ... this took my yesterday around 2hours to find out why the N switch not works anymore and today it works .... CRAZY, wtf !!!!!!! and some time ago in my script i got an error, but i was sure i did not changed on that, stupid i forgot what is was, after while, i cant remember it works again without changed anything ....

Thanks for your time ;P
Title: Re: command: date and the N switch ..crazy thing
Post by: patrikg on December 15, 2015, 08:59:08 AM
Have seen this before, maybe it's the locale settings because of changing language for the date command.

Have seen some workaround with this some doing something like this.

(export LANG=en_US.UTF-8;date)



Hi,

i have an crazy problem, before i wrote this text here, i wanted to write something else about the Time and %N switch was not working anymore... but forget this

yesterday, i installed with tce-ab "coreutils.tcz" and after that i tried the "N"(*nanosecs.) switch of "date", but the command was not found by the "date" command it was late and i logged out from my ssh session (around 2hours are gone since coreutils.tcz was installed..), today i am back into the same machine and i did not an reboot, "uptime shows me around 3days uptime!", and the date --help shows me the N switch .. what the hell is going on ... this took my yesterday around 2hours to find out why the N switch not works anymore and today it works .... CRAZY, wtf !!!!!!! and some time ago in my script i got an error, but i was sure i did not changed on that, stupid i forgot what is was, after while, i cant remember it works again without changed anything ....

Thanks for your time ;P