« Back to TCL-API

Tcl not exiting when scp command is spanned

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Normal
0




false
false
false

EN-US
X-NONE
X-NONE













MicrosoftInternetExplorer4



























































































































































/* Style Definitions */
table.MsoNormalTable
{mso-style-name:"Table Normal";
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-qformat:yes;
mso-style-parent:"";
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-ascii-font-family:Calibri;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:"Times New Roman";
mso-fareast-theme-font:minor-fareast;
mso-hansi-font-family:Calibri;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;}


 
Hi
 
 
 
We are spawning scp command from the tcl script.
 
 
 
scp_client is going to defunct state which means scp_client process has finished everything and exited but still waiting for its parent process (in this case it is the tcl which has started scp_client process) to give signal.
 
 
 
Due to this even though the scp copy is success tcl script is not terminated/exited once copy is finished.
 
 
 
The same tcl  exits fine if it is executed via CLI(Interactive mode) and all processes are terminated properly.
 
 
 
Attached the tcl file we are using.
 
 
 
Please let us know if anyone has solution.
 
 
 
Here is definition of defunct/zombie process.
 
Zombie process, also known as defunct process, is a process which is no longer in effect. A defunct process exists, when the process killed or exited using exit system call, but has yet to receive a wait call from its parent process.
 
Defunct process occurs, if the parent process ignores the SIGCHLD. That's why the zombie process entry will be left in the process table
 
Attachments:

Hi Srikanth,
The Tcl discussed in this forum is Tcl IVR API, a sepecific API for voice call. Looks like you are doing IOS Tcl.

My suggection is to post it in Cisco Beyond -  https://supportforums.cisco.com/community/netpro/network-infrastructure/eem

And I would just ask the what is reqiured maybe they have other way to fulfill your requirement.

 
Thanks !