Sponsored Content
Full Discussion: Nested calls
Top Forums Shell Programming and Scripting Nested calls Post 26018 by omran on Friday 9th of August 2002 10:36:53 AM
Old 08-09-2002
Hi again,
I have script A, that calls script B, in turn script B calls ftp. When ftp hangs only process A is shown when typing ps -ef command, script B is no longer exist. How can I prevent that. since I understand from the previous discussion that this is not possible. However, this occurs with me as shown in the snap shot below (which is taken at Aug. 8th) script A is ftpDC_lock and script B is called ftpDC (not shown). What ftpDC_lock do is it check if ftpDC is running if yes it will not fire ftpDC otherwise it will call it.
Thank you in advance
Best Regards

#date
Thu Aug 8 08:54:15 UTC 2002
# ps -fuboaadm
UID PID PPID C STIME TTY TIME COMD
boaadm 391 1 0 Jul 27 console 0:00 -ksh
boaadm 3798 3797 0 Jul 27 ? 3:09 oracleA P:4096,3,6,
boaadm 3797 1 0 Jul 27 ? 0:23 both -d
boaadm 325 1 0 Jul 27 ? 0:00 monitor 1024000 1024000 60 0
boaadm 3799 3796 0 Jul 27 ? 0:00 oracleA P:4096,3,6,
boaadm 496 391 0 Jul 27 console 0:05 runmenu50 boa -c AT386:AT386 -m p
boaadm 26251 247 0 Aug 03 ? 0:00 sh -c /usr/boa/bin/ftpDC_lock.sh >>/usr/boa/log/ftpDC_lock.log 2>&1
boaadm 491 1 0 Jul 27 console 0:00 vtlmgr
boaadm 3796 1 0 Jul 27 ? 0:00 bout -h24 -s10 -d
boaadm 499 496 0 Jul 27 ? 0:11 oracleA P:4096,6,9,
boaadm 26260 26253 0 Aug 03 ? 0:00 /usr/boa/bin/ftpDC_lock.sh
boaadm 2598 491 0 Jul 27 vt01 0:00 ksh
boaadm 26253 26251 0 Aug 03 ? 0:00 /usr/boa/bin/ftpDC_lock.sh
boaadm 26331 26260 0 Aug 03 ? 0:00 ftp -n
#
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

System Calls

What does the system call "dup" do? What is the difference between dup and dup2 I have a fair idea of what it does but I am confused when its coming down to the exact details... Please help me!:confused: (2 Replies)
Discussion started by: clickonline1
2 Replies

2. UNIX for Dummies Questions & Answers

System calls for cp and mv

Which system calls are made for operations cp and mv (2 Replies)
Discussion started by: gaurava99
2 Replies

3. UNIX for Dummies Questions & Answers

System calls?

open, creat, read, write, lseek and close Are they all primitive? :confused: *Another Question: is there a different between a system call, and an i/o system call? (2 Replies)
Discussion started by: PlunderBunny
2 Replies

4. Solaris

System calls ?

where can i find the differences in System calls between solaris and aix? also is it possible to find a comprehensive list of them? (1 Reply)
Discussion started by: TECHRAMESH
1 Replies

5. IP Networking

Identification of data calls & voice calls

Is there any facility to filter/identify the data calls and voice calls coming throug modem? OR Can we get the data or voice calls information through a script(preferably C Kermit)? (0 Replies)
Discussion started by: pcsaji
0 Replies

6. Programming

System calls

why user is not able to switch from user to kernel mode by writing the function whose code is identical to system call. (1 Reply)
Discussion started by: joshighanshyam
1 Replies

7. BSD

system calls

what is the functions and relationship between fork,exec,wait system calls as i am a beginer just want the fundamentals. (1 Reply)
Discussion started by: sangramdas
1 Replies

8. UNIX for Dummies Questions & Answers

About system calls.

Hi all, I am new here . I want to know about system call in detail. As system calls are also function .How system identifies it.:) (2 Replies)
Discussion started by: vishwasrao
2 Replies

9. Shell Programming and Scripting

c++ calls bash

hi, i'm a noob i have a quuestion: is possible to call and run the bash script by c++ program? if so, is it posible in grafic? specially Qt ? thanks (8 Replies)
Discussion started by: 3.14.TR
8 Replies

10. UNIX for Dummies Questions & Answers

system calls in C

Hello, how would i be able to call ps in C programming? thanks, ---------- Post updated at 01:39 AM ---------- Previous update was at 01:31 AM ---------- here's the complete system call, ps -o pid -p %d, getpit() (2 Replies)
Discussion started by: l flipboi l
2 Replies
Tcl_AllowExceptions(3)					      Tcl Library Procedures					    Tcl_AllowExceptions(3)

__________________________________________________________________________________________________________________________________________________

NAME
Tcl_AllowExceptions - allow all exceptions in next script evaluation SYNOPSIS
#include <tcl.h> Tcl_AllowExceptions(interp) ARGUMENTS
Tcl_Interp *interp (in) Interpreter in which script will be evaluated. _________________________________________________________________ DESCRIPTION
If a script is evaluated at top-level (i.e. no other scripts are pending evaluation when the script is invoked), and if the script termi- nates with a completion code other than TCL_OK, TCL_ERROR or TCL_RETURN, then Tcl normally converts this into a TCL_ERROR return with an appropriate message. The particular script evaluation procedures of Tcl that act in the manner are Tcl_EvalObjEx, Tcl_EvalObjv, Tcl_Eval, Tcl_EvalEx, Tcl_GlobalEval, Tcl_GlobalEvalObj, Tcl_VarEval and Tcl_VarEvalVA. However, if Tcl_AllowExceptions is invoked immediately before calling one of those a procedures, then arbitrary completion codes are per- mitted from the script, and they are returned without modification. This is useful in cases where the caller can deal with exceptions such as TCL_BREAK or TCL_CONTINUE in a meaningful way. KEYWORDS
continue, break, exception, interpreter Tcl 7.4 Tcl_AllowExceptions(3)
All times are GMT -4. The time now is 10:47 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy