I want to write a Kshell program which will start the servers(Oracle,DataIntegrator).
Can anybody help me with this?
I would appreciate your help.
Thanks in advance (0 Replies)
system = AIX
How can I explain this.....
Keep in mind I do not want to login to the boxes, persay, and that I am fairly new to scripting and unix.
I want to use SSH.
I have a script on server1, this is where I want it to run from.
I have server2 and server3, where I want the script to... (2 Replies)
Hi all
I am running a major script of my application in development for implementing code changes for process improvement in time. The script runs in production once in a month . It takes 8 hours 30 mins in Production server . what surprice me is , when I run the same script in development server... (9 Replies)
Hello All,
I have a problem calculating the time difference between start and end timings...!
the timings are given by 24hr format..
Start Date : 08/05/10 12:55
End Date : 08/09/10 06:50
above values are in mm/dd/yy hh:mm format.
Now the thing is, 7th(08/07/10) and... (16 Replies)
Hello,
I am looking for a way for a server to launch a connection command to one of the other servers where the connection command has already embedded in it a server name, user name and a password. (2 Replies)
Hi ,
What is the diffence between executing the script like
./myscript.ksh
. ./myscript.ksh
I have found 2 difference but could not find the reason
1. If i export a variable in myscript.ksh and execute it like . ./myscript.ksh the i can access the other scripts that are present in... (5 Replies)
HI all
I have written a ksh to execute PL/sql procedure and generate the log file. The script is working fine to the extent of calling the taking input, executing PL/SQL procedure.
On one server the log file is getting generated properly. i,e it shows the DBMS output . The log file size was... (9 Replies)
Hi Friends,
I have 2 varaibles which contain
START=`date '+ %m/%d/%y %H:%M:%S'`
END=`date '+ %m/%d/%y %H:%M:%S'`
i want the time difference between the two variables in Seconds.
Plz help. (2 Replies)
I was looking at this script which outputs the two lines which differs less than one sec.
#!/usr/bin/perl -w
use strict;
use warnings;
use Time::Local;
use constant SEC_MILIC => 1000;
my $file='infile';
## Open for reading argument file.
open my $fh, "<", $file or die "Cannot... (1 Reply)
Discussion started by: cele_82
1 Replies
LEARN ABOUT CENTOS
tevent_helpers
The tevent helper functiions(3) tevent The tevent helper functiions(3)NAME
The tevent helper functiions -
Functions
int tevent_timeval_compare (const struct timeval *tv1, const struct timeval *tv2)
Compare two timeval values.
struct timeval tevent_timeval_zero (void)
Get a zero timval value.
struct timeval tevent_timeval_current (void)
Get a timeval value for the current time.
struct timeval tevent_timeval_set (uint32_t secs, uint32_t usecs)
Get a timeval structure with the given values.
struct timeval tevent_timeval_until (const struct timeval *tv1, const struct timeval *tv2)
Get the difference between two timeval values.
bool tevent_timeval_is_zero (const struct timeval *tv)
Check if a given timeval structure is zero.
struct timeval tevent_timeval_add (const struct timeval *tv, uint32_t secs, uint32_t usecs)
Add the given amount of time to a timeval structure.
struct timeval tevent_timeval_current_ofs (uint32_t secs, uint32_t usecs)
Get a timeval in the future with a specified offset from now.
Detailed Description
Todo
description
Function Documentation
struct timeval tevent_timeval_add (const struct timeval *tv, uint32_tsecs, uint32_tusecs)
Add the given amount of time to a timeval structure.
Parameters:
tv The timeval structure to add the time.
secs The seconds to add to the timeval.
usecs The microseconds to add to the timeval.
Returns:
The timeval structure with the new time.
int tevent_timeval_compare (const struct timeval *tv1, const struct timeval *tv2)
Compare two timeval values.
Parameters:
tv1 The first timeval value to compare.
tv2 The second timeval value to compare.
Returns:
0 if they are equal. 1 if the first time is greater than the second. -1 if the first time is smaller than the second.
Compare two timeval values.
Return -1 if tv1 < tv2 Return 0 if tv1 == tv2 Return 1 if tv1 > tv2
struct timeval tevent_timeval_current (void)
Get a timeval value for the current time.
Returns:
A timval value with the current time.
Get a timeval value for the current time.
struct timeval tevent_timeval_current_ofs (uint32_tsecs, uint32_tusecs)
Get a timeval in the future with a specified offset from now.
Parameters:
secs The seconds of the offset from now.
usecs The microseconds of the offset from now.
Returns:
A timval with the given offset in the future.
Get a timeval in the future with a specified offset from now.
bool tevent_timeval_is_zero (const struct timeval *tv)
Check if a given timeval structure is zero.
Parameters:
tv The timeval to check if it is zero.
Returns:
True if it is zero, false otherwise.
Check if a given timeval structure is zero.
struct timeval tevent_timeval_set (uint32_tsecs, uint32_tusecs)
Get a timeval structure with the given values.
Parameters:
secs The seconds to set.
usecs The microseconds to set.
Returns:
A timeval structure with the given values.
Get a timeval structure with the given values.
struct timeval tevent_timeval_until (const struct timeval *tv1, const struct timeval *tv2)
Get the difference between two timeval values.
Parameters:
tv1 The first timeval.
tv2 The second timeval.
Returns:
A timeval structure with the difference between the first and the second value.
Get the difference between two timeval values.
struct timeval tevent_timeval_zero (void)
Get a zero timval value.
Returns:
A zero timval value.
Get a zero timval value.
Author
Generated automatically by Doxygen for tevent from the source code.
Version 0.9.8 Tue Jun 17 2014 The tevent helper functiions(3)