03-29-2007
Quote:
Originally Posted by Yogesh Sawant
yes, unless you start a new thread and do the operation in the new thread independently. usually you won't be doing this in a shell script
So regardless of what's happening inside the URL call, the next line of command inside the SHELL script would not execute until the URL call ended?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How can I execute another shell script from one?
Malay (5 Replies)
Discussion started by: malaymaru
5 Replies
2. Programming
We have to convert a sequential file to a 80 char line sequential file (HP UX platform).The sequential file contains special characters. which after conversion of the file to line sequential are getting coverted into "new line" or "tab" and file is getting distorted. Is there any way to read these... (2 Replies)
Discussion started by: Rajeshsu
2 Replies
3. Shell Programming and Scripting
Hi
I have a file say xyz.sh, whose contents are as follows :
***************************
#! /bin/ksh
set -x
. /a.sh
. /b.sh
. /c.sh
*****************************
Now will this execute all the three process simultaneously or sequentially?
If it will process simultaneously, is... (3 Replies)
Discussion started by: pankajkrmishra
3 Replies
4. UNIX for Dummies Questions & Answers
Is there a way to tell how long does a shell script(or a shell command)'s execution take? (4 Replies)
Discussion started by: meili100
4 Replies
5. Shell Programming and Scripting
Hi Guys,
Unable to run this script from the cron,although the same executes perfectly from the command line.Please help.
#!/bin/sh
#### aprintd alarm creation files #####
file=`date +%m%d%Y`
pid=$$
echo "$pid"
/u01/app/netboss/bin/aprintd/aprintd > $file &
childpid=$!... (3 Replies)
Discussion started by: ashish.sharma
3 Replies
6. UNIX for Advanced & Expert Users
Hello,
I am writing a shell script in which i do ssh to remote server and count the number of files there and then exit. After the exit the shell script terminates which i believe is expected behavior. Can some one suggest me a way where even after the exit the script execution resumes.
... (2 Replies)
Discussion started by: manaankit
2 Replies
7. UNIX for Dummies Questions & Answers
Hi,
Shell script can be executed in few ways. I would like to know the differences in the below execution methods.
sh file1.sh
. file1.sh
. /file1.sh
Please help, thank you. (2 Replies)
Discussion started by: Dev_Dev
2 Replies
8. Solaris
Hi,
I am having a shell script on Solaris 10 which has a while loop as shown below.
#!/usr/bin/ksh
#
while
do
sleep 60
done
Name of the shell script is coldcentric.sh. I executed script /DATAWAREHOUSE/LOAD/Scripts/coldcentric.sh from a command task in Informatica worklow as... (3 Replies)
Discussion started by: chekusi
3 Replies
9. Shell Programming and Scripting
I need to run few commands in a ksh script sequentially.
Some of the commands are jobs submitted to the server and the consecutive commands are dependent on the completion of the jobs submitted to the server.
It works if i separate the commands into different files like this
#!/bin/ksh... (1 Reply)
Discussion started by: prashob123
1 Replies
10. Shell Programming and Scripting
I am having two different function in my script. When control is at first function I do not want to execute another function. How I can do that?
Help is highly appreiated as I am not sure How I can do it in Unix?
Thanks,
Vikram. (2 Replies)
Discussion started by: VSom007
2 Replies
LEARN ABOUT HPUX
pthread_cleanup_push
pthread_cleanup_pop(3T) pthread_cleanup_pop(3T)
NAME
pthread_cleanup_pop(), pthread_cleanup_push() - remove or register a cancellation cleanup handler
SYNOPSIS
PARAMETERS
routine Routine registered as a cancellation cleanup handler.
arg Parameter to be passed to the cancellation cleanup handler
execute Indicates if the popped cancellation cleanup handler is to be executed.
DESCRIPTION
installs the cancellation cleanup handler routine onto the calling thread's cancellation cleanup stack. This handler will be popped from
the calling thread's cancellation cleanup stack and called with the arg parameter when any of the following occur:
(a) the thread calls or returns from its start routine.
(b) the thread acts upon a cancellation request.
(c) the thread calls with a non-zero execute argument.
When a thread terminates, it will execute each of the cancellation cleanup handlers on its cancellation cleanup stack. These handlers will
be popped and executed in the reverse order that they were installed (
removes the cancellation cleanup handler at the top of the calling thread's cancellation stack. If execute is non-zero, the cancellation
cleanup handler is called after it is removed from the cancellation stack. If execute is zero, the cancellation cleanup handler is simply
removed and will not be called.
and must appear as statements and in pairs within the same lexical scope. These functions may be macros which contain the opening '{' in
the push function and the closing '}' in the pop function.
Calling or is undefined if there have been any calls to or made without the matching call since the jump buffer was filled.
Calling or from inside a cancellation cleanup handler results in undefined behavior unless the corresponding or was also done inside the
cancellation cleanup handler.
RETURN VALUE
The and functions must be used as statements. They do not have return values or errors.
ERRORS
None.
WARNINGS
The functions and must be called in the same lexical scope or the result is undefined behavior.
AUTHOR
and were derived from the IEEE POSIX P1003.1c standard.
SEE ALSO
pthread_cancel(3T), pthread_setcancelstate(3T).
STANDARDS CONFORMANCE
Pthread Library pthread_cleanup_pop(3T)