Sponsored Content
Top Forums Shell Programming and Scripting Control from UNIX script is not returning to the Parent program Post 302917224 by gull04 on Monday 15th of September 2014 06:32:02 AM
Old 09-15-2014
Hi,

We'll need to see more than the last couple of lines of the script - all that tells us is that you set an "exit 0" at the end of the script.

Regards

Dave
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Returning values from child to parent shell

I need to send the status from child shell failure to parent shell. I would like to know how could we accomplish this. My parent.sh is as below: #!/bin/ksh set -x echo "I am in parent shell now..." child.sh ret_stat=$? echo "rest_stat=$ret_stat" echo "I am below parent shell end..." ... (4 Replies)
Discussion started by: acheepi
4 Replies

2. Programming

Returning Strings from C program to Unix shell script

Hi, Iam calling a C program from a Unix shell script. The (C) program reads encrypted username/password from a text file , decrypts and returns the decrypted string. Is there any way i can return the decrypted string to Unix shell program. My shell script uses the output of the program to... (11 Replies)
Discussion started by: satguyz
11 Replies

3. Shell Programming and Scripting

returning to the parent shell after invoking a script within a script

Hi everybody, I have a script in which I'm invoking another script which runs in a subshell. after the script is executed I want to return to the parent shell as some variables are set. However i'm unable to return to my original shell as the script which i'm calling inside is invoked in... (5 Replies)
Discussion started by: gurukottur
5 Replies

4. Programming

Returning Strings from C program to Unix shell script

Hi, I'm having a requirement where I need to call a C program from a shell script and return the value from the C program to shell script. I refered a thread in this forum. But using that command in the code, it is throwing an error clear_text_password=$(get_password) Error: bash:... (24 Replies)
Discussion started by: venkatesh_sasi
24 Replies

5. Shell Programming and Scripting

How to return control from the child script to the parent one?

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)
Discussion started by: suchismitasuchi
4 Replies

6. Shell Programming and Scripting

How can I get parent process program name?

Hi: I have 2 script on AIX server. The child script is called by parent script. For example: The parent script full name is /home/op/def/parent.spt, which calls /home/op/abc/child.spt I want to get the parent program name with full path name (i.e. /home/op/def/parent.spt), in... (3 Replies)
Discussion started by: cstsang
3 Replies

7. Shell Programming and Scripting

Child exiting and not returning to parent script

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)
Discussion started by: nw2unx123
3 Replies

8. Shell Programming and Scripting

Control not returning from Sqlplus to calling UNIX shell script.

Hello All, I have a UNIX script which will prepare anonymous oracle pl/sql block in a temporary file in run time and passes this file to sqlplus as given below. cat > $v_Input_File 2>>$v_Log << EOF BEGIN EXECUTE IMMEDIATE 'ALTER SESSION FORCE PARALLEL DML PARALLEL 16'; EXECUTE... (1 Reply)
Discussion started by: vikas_trl
1 Replies

9. Shell Programming and Scripting

Control not returning from Sqlplus to calling UNIX shell script.

Hello All, I have exactly same issue @vikas_trl had in following link: https://www.unix.com/shell-programming-and-scripting/259854-control-not-returning-sqlplus-calling-unix-shell-script.html I wonder if he or somebody else could find the issue's cause or the solution. Any help would... (4 Replies)
Discussion started by: RicardoQ
4 Replies

10. UNIX for Beginners Questions & Answers

Script for creating Control file in UNIX

Delete ---- Original post, restored by mod after being deleted by abhilashnair ---- I have a requirement where, I need to create a control file which will have 3 columns in the header row as below: Filename Count Checksum This above control file has to contain metadata as above... (2 Replies)
Discussion started by: abhilashnair
2 Replies
LOG_WRITE_BATCH(3)							 1							LOG_WRITE_BATCH(3)

log_write_batch - Callback When Writing Batches

SYNOPSIS
log_write_batch (array $server, array $writeOptions, array $batch, array $protocolOptions) DESCRIPTION
A callable function, used by the log_write_batch context option, when executing a batch operation. Note This is not a real function, only a prototype of how the function should be. PARAMETERS
o $server - An array containing the basic information about the server that was picked. +-----------------+---------------------------------------------------+ | key | | | | | | | value | | | | +-----------------+---------------------------------------------------+ | hash | | | | | | | server hash, example: localhost:27017;-;X;56052 | | | | | type | | | | | | | Node type (primary/secondary/mongos/arbiter): 2 | | | | | max_bson_size | | | | | | | The maximum BSON Size over the wire this node | | | accepts: 16777216 | | | | |max_message_size | | | | | | | The maximum Message Size over the wire this node | | | accepts: 48000000 | | | | | request_id | | | | | | | The request identifier for this message: 42 | | | | +-----------------+---------------------------------------------------+ o $writeOptions - +-------------+---------------------------------------------------+ | key | | | | | | | value | | | | +-------------+---------------------------------------------------+ | ordered | | | | | | | boolean, if the operation (in case of batch oper- | | | ation) must be executed sequentually | | | (ordered=true) | | | | |writeConcern | | | | | | | An array of writeConcern options (see below) | | | | +-------------+---------------------------------------------------+ writeConcern array values +---------+---------------------------------------------------+ | key | | | | | | | value | | | | +---------+---------------------------------------------------+ | fsync | | | | | | | boolean, force flushing to disk before returning | | | | | j | | | | | | | boolean, force journal write before returning | | | | |wtimeout | | | | | | | integer, milliseconds, maximum time the primary | | | is allowed to wait to verify replication | | | | | w | | | | | | | integer=server count, or string=replication-tag | | | | +---------+---------------------------------------------------+ o $batch - Array, the actual batch operation. o $protocolOptions - +---------------+---------------------------------------------------+ | key | | | | | | | value | | | | +---------------+---------------------------------------------------+ |message_length | | | | | | | The total size (in bytes) of the encoded message | | | being sent over the wire | | | | | request_id | | | | | | | The request identifier for this message: 42 | | | | | namespace | | | | | | | The MongoDB namespace used for the protocol mes- | | | sage dbname.collectionname | | | | +---------------+---------------------------------------------------+ CHANGELOG
+--------+--------------------------------------------------+ |Version | | | | | | | Description | | | | +--------+--------------------------------------------------+ | 1.5.0 | | | | | | | Only available when connected to MongoDB 2.6.0+ | | | | +--------+--------------------------------------------------+ PHP Documentation Group LOG_WRITE_BATCH(3)
All times are GMT -4. The time now is 11:23 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy