Sponsored Content
Operating Systems SCO Cannot use 'date -t' to set the system date and time Post 302993719 by drysdalk on Monday 13th of March 2017 03:33:26 PM
Old 03-13-2017
Hi,

Now, disclaimer: I'm about as far from an expert in SCO UNIX as it's possible to be. But from some Googlings it seems your syntax is correct for the implementation of date in your version of SCO UNIX.

So, shot in the dark guess here: do you have another version of the date command (GNU date, say ?) in your PATH before the native SCO one ? That might explain why even the SCO admin tools are failing with the same error, if the date command they're picking up on isn't the SCO one, and so the -t flag is being rejected.

As I say, a pure guess, but it's the best thing I can think of: that the date command you're running isn't actually the native SCO one.
This User Gave Thanks to drysdalk For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Alternatives to set the system date ??

Hi all, I need to syncronize a Solaris client with a QNX Server, modifying the client date, I need any alternative to set the sistem date (client Solaris) but i can't use commands date -a XXX (XXX are the time in seconds) and can't use rdate and ntp. How can I do It? :confused: (2 Replies)
Discussion started by: ulisses0205
2 Replies

2. Shell Programming and Scripting

Date comparison in file to system time

I have a CSV (comma separated vaule) file whose entries resemble Area,\\ntsvsp02\vmcs\download\files\Areas.dat,1,20090303,0,Import Complete,2009-03-02 04:23:00 Product,\\ntsvsp02\vmcs\download\files\items.dat,1,20090303,0,Import Complete,2009-03-02 04:23:00... (3 Replies)
Discussion started by: zainravi
3 Replies

3. Shell Programming and Scripting

Set system date to some date (Sunos)

I am testing a script and need to change the system date to Nov 30 2009. I cannot seem to find a way to do this other than TZ command but it does not seem to work correctly. I tried TZ=GMT+168 date but it is returning todays date Mon Dec 7 19:48:11 GMT 2009 ...instead of Nov 30 2009 I... (4 Replies)
Discussion started by: hanton
4 Replies

4. Shell Programming and Scripting

Set date and time stamp of one file to another

Hi I use "touch -t xxxxxxxx" command to set date/time stamp of a file. My requirement is to read the date/time stamp of a file and apply it to another file. Is there anyway to do it simple instead of manually taking date/stamp of first file? TIA Prvn (2 Replies)
Discussion started by: prvnrk
2 Replies

5. Shell Programming and Scripting

append a filename with system date and time

Hi, There are similar kind of posts, but none seems like working for me. Please correct me if I'm wrong. I need append/rename file abc.txt with file processed date and time like abc_systemdatetimestamp.txt and move it to different folder. for example I have /source/data/abc.txt ... (1 Reply)
Discussion started by: amsn08
1 Replies

6. Emergency UNIX and Linux Support

Is there any way to set the files modified date and stamp to last modifies time?

Actually i did modification in a file on server by mistake, now its showing current time stamp, is there any way to set the files modified date and stamp to last modifies time. Please advice here.Thanks in advance.:b: (7 Replies)
Discussion started by: saluja.deepak
7 Replies

7. Shell Programming and Scripting

[Solved] How to tar data along with current system date and time.?

Hi all, Following is my small script:- #!/bin/ksh for i in `cat /users/jack/mainfile-dr.txt` do sudo cp -r $i /users/jack/DR01/. done cd /users/jack/DR01/ sudo tar cvf system1-DR.tar * scp system1-DR.tar backupserver:/DRFiles/system1 sudo rm -rf system1-DR.tar In this script I... (10 Replies)
Discussion started by: manalisharmabe
10 Replies

8. Shell Programming and Scripting

Date: invalid date trying to set Linux date in specific format

i try to set linux date & time in specific format but it keep giving me error Example : date "+%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:01" or date +"%d-%m-%C%y %H:%M:%S" -d "19-01-2017 00:05:01" keep giving me this error : date: invalid date ‘19-01-2017 00:05:01' Please use CODE tags... (7 Replies)
Discussion started by: umen
7 Replies

9. UNIX for Beginners Questions & Answers

Compare date in .txt with system date and remove if it's lesser than system date

Can someone help me with the code wherein there is a file f1.txt with different column and 34 column have expiry date and I need to get that and compare with system date and if expiry date is <system date remove those rows and other rows should be moved to new file f2.txt . I don't want to delete... (2 Replies)
Discussion started by: Stuti
2 Replies

10. Answers to Frequently Asked Questions

Compare date in .txt with system date and remove if it's lesser than system date

I m working on shell scripting and I m stuck where in my .txt file there is column as expiry date and I need to compare that date with system date and need to remove all the rows where expiry date is less than system date and create a new .txt with update. (1 Reply)
Discussion started by: Stuti
1 Replies
HODIE(1)							   User Manuals 							  HODIE(1)

NAME
hodie - Print current date and time... in Latin SYNOPSIS
hodie [ OPTION ]... DESCRIPTION
hodie prints out the current date using classic Latin, and in addition also prints it out and time using Roman numerals. OPTIONS
-h, --help Print short help message with syntax -v, --verbose Print months and days (pridie, Kalends, Nones, Ides) full and not the respective abbreviations (standard mode of operation) Two occurrences of -v as well as the use of -vv or --extremely-verbose will include the numerals where applicable fully declined, as in 'ante diem quintum Kalends Septembres'. -n, --numerals Don't print anything in Latin - only the date and time as Roman numerals. -x, --force-numerals Print both the verbose latin and the date and time as Roman numerals. -c, --classic, --auc Print the year in the classic manner ab urbe condita instead of the more modern anno domini . -a, --ante-diem Print the date expressing the number of days to the next main day with the ante diem expression instead of ablative case. -d, --date Print out any date. This has a rather special syntax, with a keyword following the -d flag choosing input format. See section on DATE INPUT below. -r, --republican OFFSET Print out the date dated ab urbe tua condita with the offset counted in years as compared to the modern european kalendar (originat- ing with the hypothetical birth of christ). hodie -r -753 would be equivalent with hodie -c --version Print out the version number of this release and exit. No matter whether other options appear on the command line or not. DATE INPUT
Following the -d or the --date option flags, the first item must be one of the following: verbose In this case, the year, month and day are given by following the verbose keyword by the flags -y, --year, -m, --month, -d, --day for year, month and date respectively ymd After this flag, the date comes in the format YYYY-MM-DD , where the numbers may be separated by any non-numeric character. dmy With this flag, the date is given as DD-MM-YYYY mdy With this flag, the date is given as MM-DD-YYYY Restrictions on the characters that may replace the hyphen apply as above. HISTORY
The story began on the 10. of August, 2000 (a.d. VI Id. Iul., MM). Having finished most of my assignment for my two-month summer job at Ericsson Eurolab Deutschland, Nuremberg, I was idling around on the Internet, and stumbled over the dotcomma-challenges <http://www.dot- comma.org> , where especially the Roman numeral challenge started my mind. Almost an hour hacking, and there it was, another hour, and the language support was there. Before the night was over, I had written this man page and had the layout of a decent Makefile drawn out mentally. At the end of the next day, I was so far that I actually had the workings of RPM worked out, constructed a .rpm-package and a .src.rpm- package, which was promptly released on my home-page, announced on freshmeat and uploaded to metalab (apps/misc :-). Response was quick and plentiful. By now, I have compilation reports from Linux, FreeBSD and SCO Unixware 7; there are a few compability issues to put aside, but it works surprisingly well. RETURN VALUES
hodie returns zero. Always. If it doesn't, then something is really bad with the code. For some really unreadable code, this means that hodie could be used as a strange replacement for true BUGS
It doesn't sanity check the input... telling hodie to display the roman form of the 99th of march gives a slightly jumbled output, which most definitely does not make sense. Reports are more than welcome (e-mail below). AUTHOR
Now, who would come up with such a thing? Well, I'm Mikael Johansson, a rather all-round geek from Stockholm. I'm gravely interested in languages, in computers and in mathematics; a combination more dangerous than you might think. E-mails to <mikael@johanssons.org> SEE ALSO
date(1) Linux AUGUST 2000 HODIE(1)
All times are GMT -4. The time now is 03:28 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy