-2
votes
1answer
29 views

Ubuntu shell: Get tomorrow's weekday [closed]

I have a shell script for backups and I need the Weekday of tomorrow. $Today = $(date +%a) #$Tomorrow = ?
0
votes
0answers
10 views

date command not working in Kubuntu [duplicate]

I am trying to set my date and time to a past date and time. E.g. 1st March 2014, at 1100. I have tried all the usual stuff, but my Kubunutu keeps reverting to the current time. E.g. hwclock ...
1
vote
2answers
178 views

Server timezone changed to PHT but logs still written in MST?

A couple of days ago, I updated the timezone on an Ubuntu 12.04 LTS server using $ sudo dpkg-reconfigure tzdata. Today I noticed while tailing the mail log, that the times were still 15 hours behind. ...
0
votes
1answer
279 views

Ubuntu 12, cannot change date and time

whenever I try to set the date from either the command line, or using the Settings window, the new value is always reverted after a few seconds. I have tried many things: e.g. date ...
0
votes
2answers
308 views

ntpdate wrong date

Hi all I have an ubuntu8 server where I have problems with date. My current date (Europe/Rome) is 9:35 If I do date print me 11:12:34 I have seen my ntp.conf is: server 0.ubuntu.pool.ntp.org ...
0
votes
1answer
243 views

Timezonesetting not honored, system keeps sitting on timezone

whatever I try, my system (Ubuntu) stays at BRT time instead of CET. I have tried: sudo dpkg-reconfigure tzdata and set the timezone to "Europe/Berlin". date still shows BRT instead of CET or ...
1
vote
4answers
960 views

cron job to remove files with specific name

I have this in my crontab 0 3 * * * mysqldump --host=10.100.100.3 --user=username --password=mypass --routines DBName | gzip > /tmp/mysqldumps/mydb.`date +"\%Y-\%m-\%d"`.gz now I need to create ...
0
votes
2answers
278 views

date keeps resetting

I have a virtual machine(VirtualBox) running Ubuntu server. When i issue date -s 2011-01-01 it changes the date, but after a few seconds, the date resets itself to the real time. I do not have any ...