I have two shell scripts : A.sh and B.sh
A.sh
echo "In A"
exec B.sh
echo "After B"
B.sh
echo "In B"
The output is : In A
In B
I want the output : In A
In B
After B (4 Replies)
Hi
I have a shell script A which calls another 10 shell scripts which run in background. How do i make the parent script wait for the child scripts complete, or in other words, i must be able to do a grep of parent script to find out if the child scripts are still running.
My Code:
... (1 Reply)
Hi
I have a shell script A which calls another 10 shell scripts which run in background. How do i make the parent script wait for the child scripts complete, or in other words, i must be able to do a grep of parent script to find out if the child scripts are still running.
My Code:
... (5 Replies)
Hi All,
I have a script which calls a child script with a parameter to be run in the background
. childscript.ksh $a &
Can any one suggest me how do i export a variable from the child script to parent script?
Note that the child script is in background
If the child script is in... (3 Replies)
Hi everyone
i am very new to linux , working on bash shell.
I am trying to solve the given problem
1. Create a process and then create children using fork
2. Check the Status of the application for successful running.
3. Kill all the process(threads) except parent and first child... (2 Replies)
Hello all; hope someone can help me cause I am going crazy trying to find a solution for (what I think is simple) issue...looked hard up and down this forum and tried several "solutions" with no avail...so here's my issue:
I have this (parent) script: copylsofdcmcadefttosftpwithmove.sh
... (3 Replies)
I am having a parent scripts which reads a file with child scripts name.
I need to read one by one child script , execute it and
1. If child script fails send mail to the team with the log file
2. If the child script executes fine then proceed with the next child script execution.
#!... (3 Replies)
I have requirement where I need to fail parent if any one of the child process fails. Here is the code snippet
for i in 1 2 3 4 5 6 7 8 9 10
do
child_script $i &
done
wait
I need to fail my main script if any one of my child process fails (8 Replies)
Discussion started by: gvkumar25
8 Replies
LEARN ABOUT HPUX
xtcreatepob
XtCreatePopupShell() XtCreatePopupShell()
Name
XtCreatePopupShell - create a popup shell widget.
Synopsis
Widget XtCreatePopupShell(name, widget_class, parent, args, num_args)
String name;
WidgetClass widget_class;
Widget parent;
ArgList args;
Cardinal num_args;
Inputs
name Specifies the resource name for the created shell widget.
widget_class
Specifies the widget class pointer for the created shell widget; must be shellClass or any subclass.
parent Specifies the parent widget; must be of class Core or any subclass thereof.
args Specifies the argument list to override the resource defaults.
num_args Specifies the number of arguments in the argument list.
Returns
A widget of class widget_class created as a popup child of parent.
Description
XtCreatePopupShell() checks that widget_class is a subclass of Shell, and, if it is, creates a widget of that class. The widget is not
stored in the children array (maintained by Composite widgets), but rather in the popup_list array (which all widgets have).
The screen resource for this widget is determined by first scanning args for the XtNscreen resource. If it is not found, the resource
database associated with the parent's screen is queried. If both queries fail, the parent's screen is used. Once the screen is deter-
mined, the resource database associated with that screen is used to retrieve all remaining resources for the widget not specified in args.
Usage
All shell widgets other than those created by XtAppInitialize() and XtAppCreateShell() must be created with XtCreatePopupShell(). Popup
shells can be a child of any widget, not just Composite widgets. Remember that shell widgets can only have a single child, which will gen-
erally be the layout widget that arranges whatever grandchildren widgets are to appear in the popup.
Creating and realizing a popup shell widget is not enough to make it visible. To make a shell pop up, use XtPopup() or one of the prede-
fined callback procedures or menu actions that call this function. To make it popdown, call XtPopdown().
Rather than initializing an ArgList to pass to XtCreatePopupShell(), you can call XtVaCreatePopupShell() which accepts a NULL-terminated
variable length argument list of resource names and resource values.
See AlsoXtCallbackExclusive(1), XtMenuPopup(1), XtPopdown(1), XtPopup(1), XtVaCreatePopupShell(1).
Xt - Pop Ups XtCreatePopupShell()