Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using tcl with scp

Status
Not open for further replies.

xcom007

Technical User
Oct 16, 2001
3
US
I'm using tcl via websphere wscp. When I 'exec scp' the script ends. Code snippet:
if {[catch [eval [exec scp -r $expddir/$appname.ear $ssysname:$expddir ] ] result]} {
exec sleep 1
puts stdout "$logtag: Error: $result"
puts stdout "$logtag: Warning: $appname not copied to secondary system."
} else {
exec sleep 1
puts stdout "$logtag: $appname application copied to $ssysname."
set syscnt [ expr $syscnt + 1 ]
}
}
}
Also how do i redirect ouput to /dev/null with this code..?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top