02-26-2011
Methyl, yes, great point.
This is a single user stand alone system running a custom simulation application for which I am collecting results at 1 second intervals. The application takes into account the time of day, which it gets from the system time. IE my data output from 12:00:00 - 12:59:59 will be different than the data output from 13:00:00 - 13:59:59, even though I have not changed any of the application parameters.
Since I can't change the behavior of the application (it getting it's simulation time from the system clock) I have been running the application for a set period of time and then re-adjusting the system clock by hand. I'm looking for a way to let the application run continuously, but appear as if it had been run for a set number of cycles with each cycle lasting a set period of time, and each cycle beginning from an incremental offset.
Hope that helps clarify the problem I'm trying to solve with the script.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Enclosing a script that is used everyday for database shutdown. In here you will find some code that checks oracle version.
That part is very unnecessary since we use only 8.1.7 and will never go back.. Can anyone help me by modifying the code, to
never use that part and readjust so script does... (1 Reply)
Discussion started by: ST2000
1 Replies
2. Shell Programming and Scripting
Is there a way to adjust spacing of a line using k shell?
e.g I have a file below
$ cat file1
AAA BBB CCC
A B C
AAAA BB CC
I want each word to be adjusted with spaces to have 10 character length like below:
AAA BBB CCC
A B C
AAAA BB CC
Any... (4 Replies)
Discussion started by: stevefox
4 Replies
3. Shell Programming and Scripting
I have a requirement of checking the current system time and performing certain actions in a shell script. example:
if the current system time is greater than 1400 hrs, then perform step 1,2,3
if the current system time is greater than 1000 hrs, then perform step 1,2
if the current system time... (2 Replies)
Discussion started by: zainravi
2 Replies
4. Solaris
i am using function
gethrtime() in sun solaries
to get the time independent of the system time.Problem with this function is if we restart the system time will change to '0'.is there any other way to resolve this problem.
thanks & regards
suresh (3 Replies)
Discussion started by: suresh_rtp
3 Replies
5. Shell Programming and Scripting
Hello, Newbie question on scripting - I'm looking to create a simple script that will work on RHEL5 that will adjust the network settings: ip address, default gateway, and subnet mask. If anything else needs to be done (service network stop / start) or should be done to make settings active - I... (4 Replies)
Discussion started by: rojizo
4 Replies
6. Solaris
Hi experts,
I m new to solaris. I am getting following errror in /var/adm/messages file on
one of the solaris 10 zones -
xntpd: Can't set time of day: Not owner
xntpd daemon is online.
Any help on this ? (3 Replies)
Discussion started by: sunadmin
3 Replies
7. Solaris
On Solaris 10 server the system date won't match with the timestamp on files created by a cron jobs, Please help
here is what i get when i check for system date
infodba-ie10ux014:/tcpdv1_ie10/tcadmin/bin\n\r-> date
Tue Apr 24 15:27:43 GMT 2012at same time i executed a cron job, and checked... (4 Replies)
Discussion started by: karghum
4 Replies
8. Shell Programming and Scripting
Hi ,
I am trying to :wall: my head while scripting ..I am really new to this stuff , never did it before :( .
how to find cpu's system high time and user time high in a script??
thanks , help would be appreciated !
:) (9 Replies)
Discussion started by: sushwey
9 Replies
9. Shell Programming and Scripting
Hi All,
Is there any command to add additional time to date command. I need to add 5 hours to the present system time. I am getting the time by using date command.
WORKFLOW_START_TIME=`date +%m/%d/%Y\ %H:%M:%S`
Thanks (8 Replies)
Discussion started by: nag_sathi
8 Replies
10. Linux
Hey everyone. Upon studying linux trying to learn it inside and out, I'm reading about the issue of time. Hardware clock time vs the more commonly referenced System Time. What causes the two to grow apart, and what causes the time itself to stray away from UTC? at present my clock is a second and... (1 Reply)
Discussion started by: Lost in Cyberia
1 Replies
LEARN ABOUT HPUX
get_expiration_time
get_expiration_time(3T) get_expiration_time(3T)
NAME
get_expiration_time() - add a specific time interval to the current absolute system time
SYNOPSIS
DESCRIPTION
The function adds a specific time interval to the current absolute system time and returns the new absolute time. This new absolute time
is used as the expiration time in a call to pthread_cond_timedwait(3T).
The delta argument represents the number of seconds and nanoseconds to add to the current system time. On return from this function, the
abstime argument contains the absolute system time that will be used in a call to pthread_cond_timedwait(3T).
Parameters
delta Number of seconds and nanoseconds to add to the current system time.
abstime Output parameter for the absolute system time after adding delta to the current absolute system time.
RETURN VALUE
Upon successful completion, returns zero. Otherwise, an error number is returned to indicate the error (the variable is not set).
ERRORS
If any of the following occur, the function returns the corresponding error number:
[EINVAL] The value specified by delta or abstime is invalid.
AUTHOR
was developed by X/Open.
SEE ALSO
pthread_cond_timedwait(3T).
STANDARDS CONFORMANCE
: X/Open.
get_expiration_time(3T)