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..?
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..?