Visit Our UNIX and Linux User Community

Shell script executed from Informatica ETL tool is spawning 2 processes for one script

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Shell script executed from Informatica ETL tool is spawning 2 processes for one script
# 1  
Old 05-20-2013
Shell script executed from Informatica ETL tool is spawning 2 processes for one script


I am having a shell script which has a while loop as shown below.

  sleep 60

I am executing this script from Informatica ETL tool command task from where we can execute UNIX commands/scripts. When i do that, i am seeing 2 processes getting started for one script execution.

When i execute the same script through unix command line, i can see only one process created.

Anybody has any idea on why 2 processes are getting created for one script execution through Informatica ETL tool ?


Last edited by Scott; 05-20-2013 at 05:18 PM.. Reason: Code tags
# 2  
Old 05-20-2013
The bash shell usually runs while loops in a subshell (hence another process is spawned), perhaps you unix command line is ksh?
# 3  
Old 05-21-2013
Whenever i am executing this script through informatica command task, issue of 2 process creation for one script execution is occurring. If i execute the script at command line, one process will get created. This is irrespective of shell thats being used.

I am seeing one more process for the script execution getting created. Please see below.

% ps -ef | grep '[c]oldcentric'
     DW 29690 13496   0 14:37:07 ?           0:00 sh -c /DATAWAREHOUSE/LOAD/Scripts/
     DW 29691 29690   0 14:37:08 ?           0:00 sh -c /DATAWAREHOUSE/LOAD/Scripts/

I executed script /DATAWAREHOUSE/LOAD/Scripts/ from a command task in Informatica worklow as shown below.


When i abort command task or workflow, i am seeing only first process among above 2 process getting killed and second process would be alive and will not get killed. It becomes orphan and kernel process id gets tagged to this process. It remains by utilizing CPU.

After aborting worklow, below still remains.

% ps -ef | grep '[c]oldcentric'
DW 29691 11490   0 14:37:08 ?           0:00 sh -c /DATAWAREHOUSE/LOAD/Scripts/

I am using a while loop in my script as shown below.

  sleep 60

I am executing other scripts in my other ETLs and i am not facing this issue. There is no while loop like above in those scripts. Is this creating a problem ?


Last edited by chekusi; 05-21-2013 at 01:25 PM..

Previous Thread | Next Thread
Test Your Knowledge in Computers #174
Difficulty: Medium
The Apache 2 'Fancy indexing' directive shows the files plus the date the file was last modified, the size and the user who originally created the files.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Capture run time of python script executed inside shell script

I have bash shell script which is internally calling python script.I would like to know how long python is taking to execute.I am not allowed to do changes in python script.Please note i need to know execution time of python script which is getting executed inside shell .I need to store execution... (2 Replies)
Discussion started by: Adfire
2 Replies

2. Shell Programming and Scripting

Shell script not getting executed

Hi As per my requirement when I run . ./ am getting the following error -bash:ELF: command not found when i execute as ./ it is getting executed.How to resolve this. Thanks in advance. (3 Replies)
Discussion started by: pracheth
3 Replies

3. Solaris

Script on Solaris spawning 2 processes for one shell script execution

Hi, I am having a shell script on Solaris 10 which has a while loop as shown below. #!/usr/bin/ksh # while do sleep 60 done Name of the shell script is I executed script /DATAWAREHOUSE/LOAD/Scripts/ from a command task in Informatica worklow as... (3 Replies)
Discussion started by: chekusi
3 Replies

4. Shell Programming and Scripting

Informatica post session shell script

Hi, This is regarding a issue we are facing in informatica post session. We place a shell script in informatica job. The shell script will need to upload a dummy file to another server.The shell script is running fine.However in informatica job not completing and throwing error It's... (1 Reply)
Discussion started by: nag_sathi
1 Replies

5. Shell Programming and Scripting

Script to check ETL standards in an Informatica mapping

Hi, Script to check the ETL standards in an informatica mapping ( xml file ). Example: To check the naming standard of mapping . To check the transformation naming convention. To check the datatypes. To the session name , it should start with s. To check the workflow name , it should... (0 Replies)
Discussion started by: srimadhuri
0 Replies

6. Shell Programming and Scripting

help with shell script executed by php.

I made a shell script to execute a server in screen mode. # start server screen -d -m -S Test ./application echo "Program Started Successfully" than I'm executing it from php by echo shell_exec('/home/'); and it is giving me this error. "cannot make directory... (1 Reply)
Discussion started by: dmallia
1 Replies

7. UNIX for Dummies Questions & Answers

Unix Shell Script on Tidal schedular for ETL

Hello I am very new to Unix scripting, I am using informatica etl,which is schedule by tidal enterprise. I have a scenario where assume that Tidal only knows how to run jobs at a given time and does not know how to retry. So i want to know weather can i write a shell script such that... (1 Reply)
Discussion started by: bluestarmoon
1 Replies

8. Shell Programming and Scripting

Help with Informatica Backend Shell Script

Request Any one of your to provide me a script which does the following in a single unix script. Basically Users will load data in SHARED LINK everyday, should write a UNIX SCRIPT which will ........ 1) Unix script should Open the LINK (FTP) 2) Each DIRECTORY in the link contains many... (0 Replies)
Discussion started by: informaticalabs
0 Replies

9. Shell Programming and Scripting

Reg: Shell script ran using informatica

Hi all, I am not sure whether this is the right place to ask this question...:) I am working in Informatica PowerCenter 8.1.1 tool and my server is on UNIX. I have got a shell script to copy files from one folder to another. When I run the script directly from UNIX prompt it is taking 60... (0 Replies)
Discussion started by: sam99
0 Replies

10. Shell Programming and Scripting

Spawning a shell script

Hi there, I have a shell script which I need to run it from two different places on the same server, are there any specific rules I need to apply? What is the best practice to achieve this task. Regards (5 Replies)
Discussion started by: JimJim
5 Replies

Featured Tech Videos