Sponsored Content
Full Discussion: control over shell script
Top Forums Shell Programming and Scripting control over shell script Post 302103829 by Yogesh Sawant on Monday 22nd of January 2007 12:48:38 AM
Old 01-22-2007
use the Proc::Simple package to launch your shell script. Then you can keep watching the status of that launched process, know when it is finished, and also kill it if required.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to Control Cronjobs using Shell Script??

Hi All, Now i am running the 3 oracle procedures one by one manually. Query: If 1st Procedure OUT_PUT is Success, then call 2nd Procedure. If 2nd Procedure OUT_PUT is Success, then call 3rd Procedure. If 1st Procedure is failed, then no need of calling the other ... (8 Replies)
Discussion started by: hanu_oracle
8 Replies

2. Shell Programming and Scripting

how to disable and enable <control>-c or -z in a shell script

Dear all, good day. i'm asking about how to disable <control>-c or <control>-z in the beginning of a shell script then enable it again before the script exit Best Regards ---------- Post updated at 04:41 AM ---------- Previous update was at 04:18 AM ---------- Dear All i found the... (3 Replies)
Discussion started by: islam.said
3 Replies

3. Shell Programming and Scripting

Control browser from shell script

I have a browser running in a separate virtual terminal and would like to be able to send shortcut codes (e.g. ctrl+A) to the browser (and have it react) from a bash script in a separate virtual terminal. I need to keep the script in the separate virtual terminal. (2 Replies)
Discussion started by: slak0
2 Replies

4. Shell Programming and Scripting

Version Control Through the Shell Script

Version Control Through the Shell Script Hi Guys, Apologize for the big request, please take some time and read it completely... This is Very important for me, and ur help is Very much Appriciated. I want to maintain the Version control to all my scripts running in Production server, I am... (6 Replies)
Discussion started by: Anji
6 Replies

5. UNIX for Dummies Questions & Answers

[Solved] Removing control-m characters from shell script

Hi All, I need to remove control m character from a file. Steps which i am doing in shell script are: 1) We are comparing the header of the file to the database table header Here the file header has control-m characters. How do i remove it. Please help. Below are the steps i am using,... (12 Replies)
Discussion started by: abhi_123
12 Replies

6. UNIX for Dummies Questions & Answers

Deleting carriage control from shell script variable

I have a shell script variable called batch_id which contains the following value export BTCH_ID=`cat /TEMPDATA/jelg0100_batchid_sorted.dat` echo "BTCH_ID " = $BTCH_ID BTCH_ID = 1389428^ This variable can be 7, 8 or 9 digits long, so I must capture only the true numerical value. I am... (8 Replies)
Discussion started by: dgreene
8 Replies

7. Post Here to Contact Site Administrators and Moderators

Control - M Scheduler is not able to pick my shell script

Hi, Below is a shell script that i made:- #!/bin/ksh #path=/opt/tibco/shared/adaptadores/SSCC/EVEREST/input/ if ; then echo "ZIP Exists and now Processing" for files in /opt/tibco/shared/adaptadores/SSCC/EVEREST/input/T010B04.* do unzip $files echo "Files Unzipped" echo $files... (1 Reply)
Discussion started by: mmtrexon
1 Replies

8. Shell Programming and Scripting

Control - M Scheduler is not able to pick my shell script

Hi, Below is a shell script that i made:- #!/bin/ksh #path=/opt/tibco/shared/adaptadores/SSCC/EVEREST/input/ if ; then echo "ZIP Exists and now Processing" for files in /opt/tibco/shared/adaptadores/SSCC/EVEREST/input/T010B04.* do unzip $files echo "Files Unzipped" echo $files... (4 Replies)
Discussion started by: mmtrexon
4 Replies

9. Shell Programming and Scripting

Control m Character removal shell script

can anyone share script for how to remove control m character (1 Reply)
Discussion started by: pw227j
1 Replies

10. Shell Programming and Scripting

Passing control back to the shell script

Hi All, I have a shell script(test_abc.sh) with the following shell commands, which are invoking the same shell script with different parameters. test_abc.sh . ./test.sh abc >> test.log . ./test.sh xyz >> test.log . ./test.sh pys >> test.log . ./test.sh abc >> test.log . . ... (4 Replies)
Discussion started by: dev.devil.1983
4 Replies
pthread_launch_policy_np(3T)											      pthread_launch_policy_np(3T)

NAME
pthread_launch_policy_np() - setting thread launch policies SYNOPSIS
PARAMETERS
request This parameter determines the precise action to be taken by these functions. answer This parameter is an output parameter in which values are returned. The meaning of answer depends on request parameter. tid This parameter gives the value of the thread id for certain requests. DESCRIPTION
Each process shall have a launch policy. Each thread shall have a launch policy. The launch policy for a thread does not have to match the launch policy for the process. The launch policy determines the locality domain where the newly created process or thread will be launched in a ccNUMA system. The locality domains covered by a process's or thread's processor set are the available locality domains. The function sets a thread launch policy for a specific thread. The thread specified by tid is the target thread whose launch policy is changed. The value can be used to refer to the calling thread. is currently not supported for threads. If is used on a thread, it is silently ignored and zero is returned for successful completion. When a process creates another process (via or the child process will inherit the parent process's launch policy. The initial thread in the child process will inherit the launch policy of the creating thread (and not that of its process). Other threads in a multi-threaded process inherit their launch policy from the creating thread. For all launch policies, the target thread is bound to the locality domain on which it was launched. The target is allowed to execute on any processor within that locality domain. When setting a launch policy, if the target already has processor or locality domain binding, the existing binding will not be overwritten. Instead the locality domain in which the target is bound (whether locality domain binding or processor binding) will be used as the start- ing locality domain for implementing the launch policy. Refer to mpctl(2) man page for further details on launch policies. Note: locality domains are tightly tied to the physical components of the underlying system. As a result, the performance observed when using launch policies based on locality domains may vary from system to system. For example, a system which contains 4 locality domains, each containing 32 processors, may exhibit different performance behaviors from a system that contains 32 locality domains with 4 proces- sors per domain. The launch policy that provides optimal performance on one system may not provide optimal performance on a different sys- tem for the same application. The request parameter specifies the action to take and may be one of the following: The current launch policy of the target thread is returned in the answer parameter. This request currently returns or to indicate the current launch policy of the thread specified by tid. Other launch policies may be added in future releases and returned via this option. Applications using this option should be written to handle other return values in order to continue working on future releases. This request establishes a round robin launch policy for the specified thread. The successive child threads of the specified thread will be launched on different locality domains in a round robin manner until all available locality domains have been used by threads in the launch tree. At that point, the selection of locality domains begins again from the original locality domain. The answer parameter is ignored. This request establishes a fill first launch policy for the specified thread. The successive child threads of the specified thread will be launched on the same locality domain as their parent thread until one thread has been created for each available processor in the domain. At that point, a new locality domain is selected and successive threads are launched there until there is one thread per processor. All available locality domains will be used before the original domain is selected again. The answer parameter is ignored. This request establishes a packed launch policy for the specified thread. The successive child threads are launched on the same locality domain as their parent thread. The answer parameter is ignored. This request establishes a least loaded launch policy for the specified thread. The successive child threads are launched on the least loaded locality domain in the processor set regardless of the location of their parent thread. The answer parameter is ignored. This request establishes a tree based round robin launch policy for the specified thread. This request differs from in which threads become part of the launch tree. This launch policy includes all descendents of the target thread in the launch tree. The answer parameter is ignored. This request establishes a tree based fill first launch policy for the specified thread. This request differs from in which threads become part of the launch tree. This launch policy includes all descendents of the target thread in the launch tree. The answer parameter is ignored. This request unsets any launch policy in the thread. The system will employ a default, optimal policy in determining where the newly created thread will be launched. The existing binding of the thread is not changed. The answer parameter is ignored. RETURN VALUE
Upon successful completion, returns zero. Otherwise, an error number is returned to indicate the error (the variable is not set). ERRORS
If any of the following occur, the function returns the corresponding error number: [EINVAL] The request parameter contains an illegal value. [EINVAL] The value specified by answer is illegal. [ESRCH] No thread could be found in the current process that matches the thread ID specified in tid. WARNINGS
is currently not supported for threads. If is used on a thread, it is silently ignored and zero is returned for successful completion. If the request parameter is answer is set to For all other request values, answer parameter is ignored. Applications dependent on the complete implementation of should use threads. AUTHOR
was developed by HP. SEE ALSO
mpctl(2), sleep(3C), rtsched(2). STANDARDS CONFORMANCE
Pthread Library pthread_launch_policy_np(3T)
All times are GMT -4. The time now is 10:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy