calling process and going back to the main loop


 
Thread Tools Search this Thread
# 1  
calling process and going back to the main loop

hi everyone ,

i want to read an option and depending on the option call the program .For ex

Code:
#! /bin/ksh
export JAVA_HOME=/home/oracle/jdk1.6.0_20
echo " Please enter mod-modeler,  dev - sqldeveloper"
read choice

if [ "$choice" = "dev" ]; then
    echo ' SQL DEVELOPER IS STARTING NOW ... ' 
    cd /home/oracle/sqldeveloper
    exec sh sqldeveloper.sh
    cd
fi


Now here in the above code untill the sqldeveloper is running , i cant run another application , i need to run the same script into another terminal and i dont want that

Is it possible to run the sqldeveloper separately and still i am in the same terminal and get the other options and do so for other process.

Thanks
Dev
 

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Redhat Virtualization EN error : InitLogger main process terminated with status 1

My server has /var/log/messages with 'init: initLogger main process (608798) terminated with status 1' errors. I researched about the error and also followed the steps from stackexchange : 157059/error-init-ttys0-dev-ttys0-main-process-1612-terminated-with-status-1]linux - ERROR: init: ttyS0... (0 Replies)
Discussion started by: Paras Pandey
0 Replies

2. AIX

Calling functions from main program from dlopened library function

Hello All, I am trying to call a function from the calling main program from a dlopened library function, below is the entire code, when I execute it it crashes with sigill. Can you guys help me out I guess I am missing out on the linker flag or something here. besides I am new to AIX and... (1 Reply)
Discussion started by: syedtoah
1 Replies

3. Shell Programming and Scripting

main program is not calling small other programs

I am trying to understand a program in a book and this program suppose to call other programs which are in the same folder, the other programs are called 'lu' and 'add' but for some reason when it gets to the last line of each case to call these programs there is an error message saying ./rolo:... (2 Replies)
Discussion started by: bartsimpsong
2 Replies

4. UNIX for Dummies Questions & Answers

How to get the start time for a JAVA Main running process

I have a script that executes a MAIN JAVA FILE It does check if the process is already running or not by using this code w_pid=`ps -efx | grep -v grep | grep "FileTransactionArchiveMain dvlp"|awk '{print $11}'` if then #echo 'Another instance is running.' exit fi Now I... (1 Reply)
Discussion started by: akabir77
1 Replies

5. Programming

Can SIGTERM to main process kill the detached threads?

Hi, I am stuck up with a strange problem. I am writing an application - a kinda tracker that reads data from memcache and invokes theads to process each record of the memcache. I dont want to join all my threads because my tracker should poll the cache in regular intervals say sum 300... (2 Replies)
Discussion started by: deepti_v25
2 Replies

6. Shell Programming and Scripting

loop of killing and calling process

I make two process killing and calling one process I want to do this repeatedly many time between the interval(sleep) What will be the command to do this, can you make as one do use sleep between and run clear the memory(sh sync.sh) I need your advice, the script will be like this killps... (1 Reply)
Discussion started by: 197oo302
1 Replies

7. Programming

Return value (int) from main to calling shell

What is the sytax to return an int from C program main back to calling shell? #!/usr/bin/ksh typeset -i NO_RECS $NO_RECS=process_file # Process file is a C program that is set up to return an int from main. The #program complies with no issues, but an error is generated when the... (3 Replies)
Discussion started by: flounder
3 Replies

8. Shell Programming and Scripting

Calling subscript but sleep halts the main script

Ok, I have written a main script which checks a directory contents every 30 secs then sleeps. The subscript does a usermod, if the user is logged on, it sleeps for 30 secs and then trys again over and over again. Here's the problem. when the subscript is called ./subscript.sh or exec... (1 Reply)
Discussion started by: doublejz
1 Replies

9. Shell Programming and Scripting

pass parameter back to calling program

Hi all, I am running AIX version 4. I have a shell script that is calling another script. I want the called script to obtain a value and pass it back to the calling script. So far, I know that to pass a parameter to a called script is as such: sh proc2.sh $1 $2 etc. What I don't know how... (11 Replies)
Discussion started by: jthomas
11 Replies

10. Programming

c++ calling main() function

i just finished a project for a c++ class that i wrote at home on my computer, compiled with gcc. when i brought the code into school it would not compile, it would complain that cannot call main() function. at school we use ancient borland c++ from 1995. anyway my program has 20 different... (3 Replies)
Discussion started by: norsk hedensk
3 Replies
XtAppNextEvent(3Xt)						     MIT X11R4						       XtAppNextEvent(3Xt)

Name
       XtAppNextEvent, XtAppPending, XtAppPeekEvent, XtAppProcessEvent, XtDispatchEvent, XtAppMainLoop - query and process events and input

Syntax
       void XtAppNextEvent(app_context, event_return)
	  XtAppContext app_context;
	  XEvent *event_return;

       Boolean XtAppPeekEvent(app_context, event_return)
	  XtAppContext app_context;
	  XEvent *event_return;

       XtInputMask XtAppPending(app_context)
	  XtAppContext app_context;

       void XtAppProcessEvent(app_context, mask)
	  XtAppContext app_context;
	  XtInputMask mask;

       Boolean XtDispatchEvent(event)
	  XEvent *event;

       void XtAppMainLoop(app_context)
	  XtAppContext app_context;

Arguments
       app_context
		 Specifies the application context that identifies the application .

       event	 Specifies a pointer to the event structure that is to be dispatched to the appropriate event handler.

       event_return
		 Returns the event information to the specified event structure.

       mask	 Specifies what types of events to process.  The mask is the bitwise inclusive OR of any combination of and As a convenience, the
		 X Toolkit defines the symbolic name to be the bitwise inclusive OR of all event types.

Description
       If no input is on the X input queue, flushes the X output buffer and waits for an event while looking at the other input sources and time-
       out values and calling any callback procedures triggered by them.  This wait time can be used for background processing (see Section 7.8).

       If there is an event in the queue, fills in the event and returns a nonzero value.  If no X input is on the queue, flushes the output buf-
       fer and blocks until input is available (possibly calling some timeout callbacks in the process).  If the input is an event, fills in the
       event and returns a nonzero value.  Otherwise, the input is for an alternate input source, and returns zero.

       The function returns a nonzero value if there are events pending from the X server, timer pending, or other input sources pending. The
       value returned is a bit mask that is the OR of and (see If there are no events pending, flushes the output buffer and returns zero.

       The function processes one timer, alternate input, or X event.  If there is nothing of the appropriate type to process, blocks until there
       is.  If there is more than one type of thing available to process, it is undefined which will get processed.  Usually, this procedure is
       not called by client applications (see processes timer events by calling any appropriate timer callbacks, alternate input by calling any
       appropriate alternate input callbacks, and X events by calling

       When an X event is received, it is passed to which calls the appropriate event handlers and passes them the widget, the event, and client-
       specific data registered with each procedure.  If there are no handlers for that event registered, the event is ignored and the dispatcher
       simply returns.	The order in which the handlers are called is undefined.

       The function sends those events to the event handler functions that have been previously registered with the dispatch routine.  returns if
       it dispatched the event to some handler and if it found no handler to dispatch the event to.  The most common use of is to dispatch events
       acquired with the procedure.  However, it also can be used to dispatch user-constructed events.	also is responsible for implementing the
       grab semantics for

       The function first reads the next incoming X event by calling and then it dispatches the event to the appropriate registered procedure by
       calling This constitutes the main loop of X Toolkit applications, and, as such, it does not return.  Applications are expected to exit in
       response to some user action.  There is nothing special about it is simply an infinite loop that calls and then

       Applications can provide their own version of this loop, which tests some global termination flag or tests that the number of top-level
       widgets is larger than zero before circling back to the call to

See Also
       X Window System Toolkit: The Complete Programmer's Guide and Specification, Paul J. Asente and Ralph Swick
       X Window System: The Complete Reference, Second Edition, Robert W. Scheifler and James Gettys

															       XtAppNextEvent(3Xt)

Featured Tech Videos