Questions tagged [tcl]

13 questions
5
votes
2 answers

expect + how to identify if expect break because time out?

The target of the following simple expect script is to get the hostname name on the remote machine Sometimes expect script fail to perform ssh to $IP_ADDRESS ( because remote machine not active , etc ) so in this case the expect script will break…
Eytan
  • 601
  • 6
  • 13
  • 26
2
votes
0 answers

Is it possible to embed TCL directly into a Cisco startup-config?

Is it possible to embed TCL directly into a Cisco startup-config? From the (lack of) information I'm finding, it doesn't look do-able. I have a tool that generates Cisco configurations based on some simple criteria. I'd like to include in this…
willpall
  • 21
  • 1
2
votes
5 answers

F5 Networks iRule/Tcl - Escaping UNICODE 6-character escape sequences so they are processed as and reinserted as the 6-character sequence?

We are trying to get an F5 BIG-IP LTM iRule working properly with SharePoint 2007 in an SSL termination role. This architecture offloads all of the SSL processing to the F5 and the F5 forwards interactive requests/responses to the SharePoint front…
openid.malcolmgin.com
1
vote
1 answer

How to get the distinguished name (DN) of the current host directly in adedit?

I know how to get the DN from the command line: adquery user -D "$(hostname -s)" However, I want to get the DN into an adedit script. If I can select_object {DN here}, then I can do the other things I need to do. I just don't know how to get the…
Wildcard
  • 153
  • 2
  • 14
1
vote
1 answer

How can I simplify this expect script?

I made a little script to change passwd of many servers. Its syntax is expect - an extension of tcl. It seems so bad but can work fine. One problem is when I login to a server the first time, I need to enter 'yes' to confirm to add this server to…
pluto
  • 13
  • 2
1
vote
3 answers

Expect script does not print (cat ) a file on remote server

I have an expect script which checks if a file exists on a remote server and then tries to print ( using cat) it if it does For some reason the expect script ignores these commands. send "if {[file exists "./abc.test"]} {cat ./abc.txt\r}"
Sharjeel
  • 347
  • 4
  • 18
1
vote
1 answer

How to install TCL 8.5 on Centos 5.8?

Soooo, the latest redis requires tcl 8.5 (a few weeks ago, redis was happy with tcl 8.4). Is there an rpm for tcl 8.5? thanks!
1
vote
1 answer

expect script + how to perform case in expect script

the following expect script target is to print the hostname name from linux/solaris machine and according to hostname results expect script will run linux.ksh or solaris.ksh script expect_sun_script=`cat << EOF set timeout -1 spawn telnet 0…
yael
  • 2,363
  • 4
  • 28
  • 41
1
vote
0 answers

Tcl code to compare between two files(specific lies)

This TCL code I wrote to fetch pin details and compare with layer and rect proc fileinput {filename} { set filedata [open $filename r] set file1 [ read $filedata ] close $filedata set pindata [dict create] foreach line [split…
Santhosh Nayak D.
0
votes
1 answer

TCL, WMI and twapi

I am sorry if this is a double post. I thought I posted this question yesterday, but cannot find it. We are going to start the process of changing our network numbering scheme from 192.168.88.0/24 to 10.0.1.0/24. There are approximately 50 devices…
0
votes
2 answers

expect + how to install expect on solaris

subject - install expect on solaris in order to write expect scripts details from my machine: uname -a SunOS 5.10 Generic_139555-08 sun4v sparc SUNW,Netra-T5220 I installed Solaris machine ( Solaris 10 ) , and then I installed successfully the…
Eytan
  • 601
  • 6
  • 13
  • 26
0
votes
2 answers

Build of expect v5.43 fails with Tcl v8.5.8

I'm trying to build "expect" from source v5.43, using Tcl built from source v8.5.8 on Redhat Linux. Tcl built fine, but my attempt to build expect fails. I run configure, then make, which gives me the error: `TCL_REG_BOSONLY' undeclared when…
E Brown
  • 121
  • 1
  • 1
  • 5
0
votes
1 answer

SSL Renegotiation trigger - F5 iRule

I'm trying to implement a TCL script to be used in an F5 iRule, in order to catch any SSL renegotiation event. I'm stuck at the first step, which is basically the "trigger" which could say "when the SSL renegotiation happens, do something" (e.g. log…
Alessandro
  • 55
  • 5