how to continue shell script execution process without control going to pompt?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting how to continue shell script execution process without control going to pompt?
# 1  
Old 04-12-2012
how to continue shell script execution process without control going to pompt?

Hi Friends,

Iam invoking another shell script to create B2k_session_id from my shell script.It is properly creating B2k_session_id and after creation control is coming out from the script and going to command prompt.The lines which are after the exectrusteduser.com sh.com are not executing..may be B2k create file have exitscript logic..how to continue my shell script execution process with out going to pompt?

Code:
#! /bin/ksh
text_file=$1
exectrusteduser.com sh.com //invoking to create b2k session id
echo " b2k session id is $B2K_SESSION_ID"
#$TBA_E/mcbx4005 $B2K_SESSION_ID $text_file N ALL
echo "please check logs for upload status"

Thanks,
Venkat Vadlamudi.

Last edited by Corona688; 04-12-2012 at 05:13 PM..
# 2  
Old 04-12-2012
This code is unfamiliar. References .com suggest ancient Microsoft or Digital Research or Novell.
Please post what Operating System and version you are running.
# 3  
Old 04-12-2012
Quote:
Originally Posted by methyl
This code is unfamiliar. References .com suggest ancient Microsoft or Digital Research or Novell.
Please post what Operating System and version you are running.

Hi,

please find My OS configuration below.

rwxd253:dotis01:/home$ uname -a
AIX 1 6 00F67D1D4C00rwxd253

Iam creating a shell script file which is invoking exectrusteduser.com sh.com(This is finacle service to create b2k session id)
# 4  
Old 04-12-2012
What, precisely, does this program do? Do you have to wait for it? There may be a reason it's not continuing, if it's still running in the foreground.

You can put an & on the end to run it in the background, but then you'll have to be sure somehow that the session is actually ready before you get too carried away, and kill it later.
# 5  
Old 04-12-2012
Quote:
Originally Posted by Corona688
What, precisely, does this program do? Do you have to wait for it? There may be a reason it's not continuing, if it's still running in the foreground.

You can put an & on the end to run it in the background, but then you'll have to be sure somehow that the session is actually ready before you get too carried away, and kill it later.
This program need to create a b2k_session_id and passing that b2k_session_id for Finacle upload service as below(mcbx4005).Creating b2k_session_id will take 2 or 3 secods.

$TBA_E/mcbx4005 $B2K_SESSION_ID $text_file N ALL

"You can put an & on the end to run it in the background" can you explain me the purpose of putting & ?
# 6  
Old 04-12-2012
It runs it in the background. The script will keep running, but won't wait for that particular program to finish before doing so.

It won't wait for it to connect, either.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

How to continue shell script after exit 0?

Hi, I am writing a shell script where I am sourcing other shell script in that script I have mention exit 0 due to that it is not continue the first script. Except doing any changes to source script is there any way I can continue the my first script. (3 Replies)
Discussion started by: sonujatav
3 Replies

2. Programming

Help needed to Spawn Shell on Python and Continue Execution

def gob(url): print "\n\t Running gobuster on target." params = " -e -s '307,200,204,301,302' -t 20 -u " + url + " >> /tmp/%s/gobuster.txt" % (ip) os.system("xterm -e bash -c "tail -f /tmp/%/gobuster.txt"") for i in bflist: dirbf = "gobuster -w " + i... (3 Replies)
Discussion started by: alvinoo
3 Replies

3. Shell Programming and Scripting

Continue Execution Based On List

Hi all. I have a script like this function check_filesize { filesize_1="$(ls -la "$1"|awk '{ print $5 }')" sleep 123 filesize_2="$(ls -la "$1"|awk '{ print $5 }')" if then echo "OK" else echo "NOT OK" sleep 1234 check_filesize $1 fi } function check_TR { chk="$(tail -1 $1|grep... (5 Replies)
Discussion started by: aimy
5 Replies

4. Shell Programming and Scripting

Continue an instruction on more than one line in a script shell ?

Hello, I have a very long instruction to write, but, for lisibility reasons, I would like to cut it on more than one line and comment each lines. is it possible ? thanks :b: (1 Reply)
Discussion started by: shadok
1 Replies

5. UNIX for Dummies Questions & Answers

UNIX command to skip any warning messages and continue job execution

Hello All, Good day! This is my first UNIX post. :D Anyways, I would like to seek help from you guys if you know of any UNIX command that will skip a warning message once it is encountered but continue to run the execution. Ok here's the situation in general: An encypted file is sent to... (2 Replies)
Discussion started by: jennah_rekka
2 Replies

6. Shell Programming and Scripting

perl - understand process status and continue the code execution

Hello, I need advice on how to check if started processes are finished in perl, here's explanation : OS is RHEL 4, perl -v = "This is perl, v5.8.0 built for i386-linux-thread-multi" The logic of the script : #!/usr/bin/perl use warnings; $param1 = $ARGV; $param2 = $ARGV; $param3 =... (2 Replies)
Discussion started by: sysgate
2 Replies

7. Shell Programming and Scripting

control over shell script

Hi.. I have a perl program that uses "system" to execute a shell script called startengine. The script "startengine" itself calls a lot of other smaller scripts to setup the engine etc. It finally has to execute ./engine which is another shell script which is long and takes a long time to... (3 Replies)
Discussion started by: JLJ
3 Replies

8. UNIX for Dummies Questions & Answers

Process launched by user who logs out, continue running ?

Lets say a user starts a process (either a shell script or a Perl script) and before that process finishes, he logs out (either intentionaly or network problems or ...), does the process continu running ? Default shell is Korn. This is because at my job (being trained), there are tasks to run... (2 Replies)
Discussion started by: Browser_ice
2 Replies

9. Shell Programming and Scripting

2 Questions about my process control script

Hi all, My tiny mind is struggling with the following script that shuts down Tomcat on Sol. 8 and kills any defunct processes Tomcat might leave behind (as it so often does). I realize that fixing Tomcat would be best, but this is a band-aid so I won't have to do as much off-hours support of... (3 Replies)
Discussion started by: dkaplowitz
3 Replies
Login or Register to Ask a Question