how to remote log in to a system A to system B ,execute commands in it and collect the log in system A from B using TCL script??  

Answer Posted / srinivas b.n

From System A, ssh to system B and get the spawn ID of System B into System A , use "set val [send -i $spawn_id <command>]" which would run a command in System B from system A context, Now whatever is content in val (puts $val) would be the logs from System B run in System A.

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Hi all, Is there any certification exams available for TCL and Perl. If so please let me know, my mailid is vpbharathi@gmail.com. Thanks in advance, Bharathi.P

2523