09-15-2010
Sorry, yes that was actual correct in the code, just a typo when I entered in post. Any other ideas?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi ,
I have two variables both containg dates,
x= `date`
and
y= `date'
their format being -> Fri Nov 12 22:59:50 MST 2004
how do I compare which one is greater.
->Can dates be converted into integer and then compared?
( one lengthy way would be to compare the words one by... (7 Replies)
Discussion started by: k_oops9
7 Replies
2. Programming
hi
is there a c function in linux for comparing dates.
thanx in advance.
svh (2 Replies)
Discussion started by: svh
2 Replies
3. Shell Programming and Scripting
Hi,
Can some one guide me how to compare two dates in unix.
TIA
Gupta (5 Replies)
Discussion started by: guptan
5 Replies
4. Shell Programming and Scripting
Hi guys
I have a a variable called check_ts which holds a date value. this date value keeps refreshing every 15 minutes.
I am going to start a cron job 5 minutes after the refresh. I have to check if the current date > 20 min of check_ts. how do i do that.
thanks
ragha (17 Replies)
Discussion started by: ragha81
17 Replies
5. Shell Programming and Scripting
Hello friends,
I am looking for a script or method that can display all the dates between any 2 given dates.
Input:
Date 1
290109
Date 2
010209
Output:
300109
310109
Please help me. Thanks. :):confused: (2 Replies)
Discussion started by: frozensmilz
2 Replies
6. UNIX for Dummies Questions & Answers
Hi I have yesterday date and todays date stored in two variables.
Today date is stored in variable -- testdate=`date +%m/%d/%Y`
I found the yesterday date and stored in variable -- ydate=$month'/'$day1'/'$year
Now i am trying to find out whether $testdate is less that $ydate.
I am... (6 Replies)
Discussion started by: intiraju
6 Replies
7. Shell Programming and Scripting
Hi,
I have written the following script which will provide the first date of the 3rd previous month and last date of the 2nd previous month but when I change the month for 03 (March) then I am getting the incorrect results.
Ex : - If today is 1 Jan 2010 then the script should provide the... (1 Reply)
Discussion started by: kandi.reddy
1 Replies
8. Shell Programming and Scripting
Hi,
I want to compare today's date(DDMMYYYY) with yesterday(DDMMYYYY) from system date,if (today month = yesterday month) then execute alter query else do nothing.One more condition is change of year also i.e today is Jan1 2012 and yesterday is Dec 31 2011.
The above rek i want in Shell... (4 Replies)
Discussion started by: kumarmsk1331
4 Replies
9. Shell Programming and Scripting
Hi
I'm trying to compare the current date (dd-Mmm-yyyy) against a variable that is an extracted date from an sql script. Below is the code:
datenow=`date '+%d-%h-%Y'`
#datenow is the current date in the format dd-Mmm-yyyy
sqlplus $dbuserid/$dbpassword @ $SCRIPT_PATH/business-date.sql >... (3 Replies)
Discussion started by: joyAV
3 Replies
10. Shell Programming and Scripting
Hi
I am failing to write a script which compares a list of dates in a file with today's date.
OS: Solaris 10
I have a file which has server names & dates, i need to compare the date in this file with today's date, if it is less than today it should print the server name.
code i tried is ... (3 Replies)
Discussion started by: nanz143
3 Replies
LEARN ABOUT OSF1
prestosetup
prestosetup(8) System Manager's Manual prestosetup(8)
NAME
prestosetup - Configures the Prestoserve software
SYNOPSIS
/usr/sbin/prestosetup
DESCRIPTION
The prestosetup command is an interactive facility that allows you to set up Prestoserve on your system. Prestoserve speeds up synchronous
disk writes, including NFS server access, by reducing the amount of disk I/O. The prestosetup command also allows you to modify the
Prestoserve configuration on your system.
In order to use Prestoserve, your system must contain the necessary Prestoserve hardware.
The prestosetup command verifies that the Prestoserve license is registered, the Prestoserve utilities are installed, and the Prestoserve
software is configured into your kernel. Note that some Prestoserve hardware configurations require different forms of kernel configura-
tion. If the Prestoserve hardware was installed in your system when the operating system was installed, the Prestoserve software will be
automatically configured into your kernel. If not, you may have to rebuild your kernel to include the correct Prestoserve controller
device before you run prestosetup.
The prestosetup command configures Prestoserve on your system by asking the following questions: Do you want Prestoserve automatically
enabled at system startup? Which file systems do you want to accelerate? To specify a file system, use the mount point. Do not specify a
block device because some functional subsystems, such as the Advanced File System (AdvFS), can map more than one block device to a mount
point. Do you want to start Prestoserve now?
After you have entered the necessary information, the prestosetup command displays the information that you entered and prompts you to con-
firm that the information is correct. If the information is not correct, the prestosetup command exits and no changes are made. If the
information is correct, the prestosetup command does the following: Creates the /dev/pr0 Prestoserve control device if necessary. Creates
the /etc/prestotab file and includes the mount points for the file systems that you want automatically accelerated when the system starts
up. Updates the /etc/rc.config file and sets the appropriate run-time configuration variables. Updates the /sbin/init.d/presto startup
script with the Prestoserve configuration information from the /etc/rc.config file.
If you choose not to automatically enable Prestoserve when you start up the system, you must manually start the prestoctl_svc daemon and
use the presto command to accelerate the file systems.
The prestosetup command also allows you to modify the Prestoserve configuration on your system. For example, you may want to add addi-
tional file systems to the list in the /etc/prestotab file.
FILES
Lists the mount points for the file systems that you want automatically accelerated when the system starts up.
SEE ALSO
Commands: presto(8), prestoctl_svc(8)
Files: prestotab(4)
Guide to Prestoserve
prestosetup(8)