12-08-2009
Quote:
Originally Posted by
jim mcnamara
You will have to have a development box. We have a specific box named "timewarp" for just this kind of stuff. There are no cron jobs, no at jobs, and it is setup with no ntpd.
I personally have not tried this because our Sun OS versions are old:
create a Solaris zone with its own internal UTC setting - on Solaris 10g.
You should have a development environment at your work as well. Or maybe create a desktop one using Virtual Box - if you have to test time/date dependent code.
You are not actually testing time/date dependent code otherwise.
I am working on a develpment box but it is in a shared envrironment so I doubt the admins will play around with internal UTC settings (?)
if Virtual Box is not to hard to set up I will give that a shot
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
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
I am currently running the following Korn shell script which works fine:
#!/usr/bin/ksh
count=`db2 -x "select count(*) from schema.tablename"`
echo "count"
I would like to add a "where" clause to the 2nd line that would allow me to get a record count of all the records from schema.tablename... (9 Replies)
Discussion started by: sasaliasim
9 Replies
3. Shell Programming and Scripting
Hi,
Anybody knows how to get what date was 28 days ago of the current system date through UNIX script.
Ex : - If today is 28th Mar 2010 then I have to delete the files which arrived on 1st Mar 2010, (15 Replies)
Discussion started by: kandi.reddy
15 Replies
4. UNIX for Dummies Questions & Answers
Hello gurus,
I am hoping someone can help me with the required code/script to make this work. I have the following file with records starting at line 4:
NETW~US60~000000000013220694~002~~IT~USD~2.24~20110201~99991231~01~01~20101104~... (4 Replies)
Discussion started by: chumsky
4 Replies
5. UNIX for Dummies Questions & Answers
Hi Guys,
Anyone who knows how to compare the current date with the a file containing a date, say for example I have a file that looks like this:
Command was launched from partition 0.
------------------------------------------------
Executing command in server server6
Fri Dec 16... (7 Replies)
Discussion started by: rymnd_12345
7 Replies
6. Shell Programming and Scripting
Hi! I am trying to read a file and every line has a specific date as one of its fields.
I want to take that date and compare it to the date today plus 6 days.
while read line
do
date=substr($line, $datepos, 8) #date is expected to be YYYYMMDD
if ; then
...proceed commands
... (1 Reply)
Discussion started by: kokoro
1 Replies
7. SCO
Hi! All,
I am trying to reset the date and time since the change in time over the weekend. I cannot issue the command date -t 201703131330.
The system gives me an error invalid option.
This happens on my SCO OpenServer 5.0.7 and 5.0.6. Do anyone have an idea why? I even tried using... (6 Replies)
Discussion started by: trolley
6 Replies
8. Shell Programming and Scripting
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
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
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
LEARN ABOUT DEBIAN
bbstored.conf
BBSTORED.CONF(5) Box Backup BBSTORED.CONF(5)
NAME
bbstored.conf - Box Backup store daemon configuration file
SYNOPSIS
/etc/box/bbstored.conf
DESCRIPTION
The following configuration options are valid:
RaidFileConf
Specifies the path to the raidfile.conf(5). This is normally /etc/box/raidfile.conf.
AccountDatabase
Specifies the path to the account database created by bbstoreaccounts(8). This is usually /etc/box/bbstored/accounts.txt.
ExtendedLogging
Specifies whether extended logging should be enabled to show what commands are being received from clients.
TimeBetweenHousekeeping
How long between scanning for files which need deleting.
Server
These options relate to the actual daemon..PP PidFile
The location of the pidfile, where the daemon's process ID is kept.
User
The user to run as.
ListenAddresses
The interface addresses to listen on. Hostnames may be used instead of IP addresses. The format is: inet:hostname or inet:10.0.0.1.
CertificateFile
The path to the server's public certificate.
PrivateKeyFile
The path to the server's private key. This should only be readable by root and/or the User.
TrustedCAsFile
The Certificate Authority created by bbstored-certs(8).
EXAMPLES
The following is an example bbstored.conf:
RaidFileConf = /etc/box/raidfile.conf
AccountDatabase = /etc/box/bbstored/accounts.txt
TimeBetweenHousekeeping = 900
Server
{
PidFile = /var/run/bbstored.pid
User = _bbstored
ListenAddresses = inet:server.example.com
CertificateFile = /etc/box/bbstored/server.example.com-cert.pem
PrivateKeyFile = /etc/box/bbstored/server.example.com-key.pem
TrustedCAsFile = /etc/box/bbstored/clientCA.pem
}
FILES
/etc/box/bbstored.conf
SEE ALSO
bbstored(8), bbstored-config(8), raidfile-config(8)
AUTHORS
Ben Summers
Per Thomsen
James O'Gorman
Box Backup 0.11 10/28/2011 BBSTORED.CONF(5)