I have a script, myscript.pl
I want to set the script to exit if it is already running.
At the moment I am using soft stop.
eg:
if -e dummy file then exit
else create a dummy file
Is there any other better way to perform this?
Maybe
ps -ef | egrep 'myscript.pl' (3 Replies)
I have created a shell script.
I want to run the script in Autosys.
Please note my shell script runs as "$ ksh run.ksh"
How do I make autosys run this script at 5:00PM every day?
insert_job: abc job_type: c
box_name: run.box
command: ksh run.ksh
machine: mach1
#owner: mach1@mymach... (1 Reply)
Hi
My five script run throgh crontab at same time at 6 clock.
Due to problem in the data load .Now I want to check time of load finish run these jobs. I create a script which check the load finish time but I have no idea how I run these JObs. This is very urget to me. Please reply me as soon... (3 Replies)
Hi!
I need to run my script for a specific number of time, as specified by the user: For instance, if the user specified 10, my script should run for until 10 seconds expire. How do I do this? (0 Replies)
I have just written a Csh script and i want to find out how long does the script take to complete executing. Is there any codes which i can put into my script to capture its run time ? (9 Replies)
I have a script I want to run in the background, and I have looked it up but I am not exactly sure how to do. First of all to run it in the background do you have to put something in the script or is it just a command when you go to run it. I found this solution to it but once again I am not to... (2 Replies)
Hello
I am asked to run around 5-6 SQL queries in a shell script and take a note of the time taken to execute each query to a file. How do I get the time taken to run the individual SQL queries (2 Replies)
I have an ETL process that triggers a shell script. This script picks the files created by the ETL process and does an SFTP. These are huge files. Due to infrastructure limitations, we need to trigger the actual SFTP part only during the 2nd, 16th, 31st and 46th minute of an hour. Please let me... (2 Replies)
I have bash shell script which is internally calling python script.I would like to know how long python is taking to execute.I am not allowed to do changes in python script.Please note i need to know execution time of python script which is getting executed inside shell .I need to store execution... (2 Replies)
Hi All,
Would like to write a Script which will run between 11am to 3 pm and send the results to output.txt.
Please suggest. (2 Replies)
Discussion started by: vasuvv
2 Replies
LEARN ABOUT OSF1
pthread_get_expiration_np
pthread_get_expiration_np(3) Library Functions Manual pthread_get_expiration_np(3)NAME
pthread_get_expiration_np - Obtains a value representing a desired expiration time.
LIBRARY
DECthreads POSIX 1003.1c Library (libpthread.so)
SYNOPSIS
#include <pthread.h>
int pthread_get_expiration_np(
const struct timespec *delta,
struct timespec *abstime);
STANDARDS
None
PARAMETERS
Number of seconds and nanoseconds to add to the current system time. (The result is the time in the future.) This result will be placed
in abstime. Value representing the absolute expiration time. The absolute expiration time is obtained by adding delta to the current sys-
tem time. The resulting abstime is in Universal Coordinated Time (UTC).
DESCRIPTION
This routine adds a specified interval to the current absolute system time and returns a new absolute time. This new absolute time is used
as the expiration time in a call to pthread_cond_timedwait(3).
The timespec structure contains the following two fields: tv_sec is an integral number of seconds. tv.nsec is an integral number of
nanoseconds.
RETURN VALUES
If an error condition occurs, this routine returns an integer value indicating the type of error. Possible return values are as follows:
Successful completion. The value specified by delta is invalid.
ERRORS
None
RELATED INFORMATION
Functions: pthread_cond_timedwait(3)
Manuals: Guide to DECthreads and Programmer's Guide
delim off
pthread_get_expiration_np(3)