03-26-2017
Hi.
Portable among what hardware / software systems, what languages, what etc.? ... cheers, drl
This User Gave Thanks to drl For This Post:
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am writting a script in the ksh shell and am trying to find a way to report the total execution time of the script without requiring the user to specify the time function when executing the script.
Does anyone have any examples they have used. I have been setting up two date variables (one at... (9 Replies)
Discussion started by: johnsonbryce
9 Replies
2. Shell Programming and Scripting
Hi All,
The below script I run daily and it consumes 2 hours approx.
In this I am calling another script and executing the same twice.
Is the loop below the cause for the slow process?Is it possible to finetune the program so that it runs in a much faster way?
The first script:
#!/bin/ksh... (4 Replies)
Discussion started by: Sreejith_VK
4 Replies
3. Shell Programming and Scripting
i want to test whether a script has been executed in last 15 days or not....please help how can i do this...is there any copmmand there to know timings of last execution of any script (8 Replies)
Discussion started by: arghya_owen
8 Replies
4. Shell Programming and Scripting
HI ,
I have a list1 which consists of data that i have to search and a list2 which has the files that need to be searched .So basically i am using list1 on list2 to see if list1 data is present if found replace it .I have written the code using foreach loop for each list .This is taking the... (1 Reply)
Discussion started by: madhul2002
1 Replies
5. Shell Programming and Scripting
Hi,
I have a simple question. How can I get the execution time of a script and maybe put it in a variable?
Another question. How can I get only time and not date and put it in a variable? I tried something with "date" command but with no success...
If someone could help me... (8 Replies)
Discussion started by: Moumou
8 Replies
6. Shell Programming and Scripting
Hello,
I'm running a bash script and I'd like to get more accurate a runtime information then now.
So far I've been using this method:
STARTM=`date -u "+%s"`
.........
*script function....
.........
STOPM=`date -u "+%s"`
RUNTIMEM=`expr $STOPM - $STARTM`
if (($RUNTIMEM>59)); then... (6 Replies)
Discussion started by: TehOne
6 Replies
7. Shell Programming and Scripting
DELETED. (0 Replies)
Discussion started by: vasuvv
0 Replies
8. Shell Programming and Scripting
i am using bash
START=$(date +%s)
END=$(date +%s)
DIFF=$(echo "$END - $START" )
this code is not working (14 Replies)
Discussion started by: rafa_fed2
14 Replies
9. Shell Programming and Scripting
Hello Guys,
I would like to know is there a way to take the script execution time
For e.g i am having a script.sh i need to write inside he script.sh like
Start time : 10-Mar-2016 02:30:35
all code over here
...
End time : 10-Mar-2016 03:30:32
Script start time - 02:30:35 ... (7 Replies)
Discussion started by: Master_Mind
7 Replies
10. Shell Programming and Scripting
We are trying to execute below script for finding out the occurrence of a particular word in a log file Need suggestions to optimize the script.
Test.log size - Approx to 500 to 600 MB
$wc -l Test.log
16609852 Test.log
po_numbers - 11 to 12k po's to search
$more po_numbers
xxx1335... (10 Replies)
Discussion started by: KumarPiyush7225
10 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)