<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Tcl not exiting when scp command is spanned</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=12216298" />
  <subtitle>Tcl not exiting when scp command is spanned</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_thread?p_l_id=&amp;threadId=12216298</id>
  <updated>2013-05-21T21:36:16Z</updated>
  <dc:date>2013-05-21T21:36:16Z</dc:date>
  <entry>
    <title>RE: Tcl not exiting when scp command is spanned</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=12223928" />
    <author>
      <name>Yaw-Ming Chen</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=12223928</id>
    <updated>2013-02-21T17:46:02Z</updated>
    <published>2013-02-21T17:46:02Z</published>
    <summary type="html">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 !

[b][b][b] [/b][/b][/b]</summary>
    <dc:creator>Yaw-Ming Chen</dc:creator>
    <dc:date>2013-02-21T17:46:02Z</dc:date>
  </entry>
  <entry>
    <title>Tcl not exiting when scp command is spanned</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=12216297" />
    <author>
      <name>Srikanth Pabbathi</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=12216297</id>
    <updated>2013-02-21T14:56:24Z</updated>
    <published>2013-02-21T14:56:24Z</published>
    <summary type="html">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 [color=black]all processes are terminated properly.[/color]
 
 
 
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
 </summary>
    <dc:creator>Srikanth Pabbathi</dc:creator>
    <dc:date>2013-02-21T14:56:24Z</dc:date>
  </entry>
</feed>

