Sponsored Content
Full Discussion: Installing EXPECT on unix
Top Forums Programming Installing EXPECT on unix Post 302327996 by anaga on Tuesday 23rd of June 2009 06:42:07 AM
Old 06-23-2009
fpmurphy,

I dont have much experience. Can you pleae make me understandable by the above statement. What should I run @ command prompt?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

installing Unix

Hi all, I just joined this forum and I have tons and tons of questions! Lets start with first one, how to install unix (on laptop)? I bought this book (Unix System Administrator's Bible) and got a CD (Full distribution copy of FreeBSD 2.2.5); and it is all compressed (I got that... (4 Replies)
Discussion started by: nchauhan
4 Replies

2. Shell Programming and Scripting

Installing expect

Hi, I have solaris 8 installed in my intel machine.(pentium 4).I'am planning to learn expect.Can somebody help me in giving relevant sites for that.I beleive we have to install TCL also for expect.Can somebody throw light on installations of both TCL & expect? thanx in advance, raj. (1 Reply)
Discussion started by: sounder123
1 Replies

3. UNIX for Dummies Questions & Answers

Installing unix.

Hi, I want to go and learn unix, I order to achieve this task I need to install unix on my machine. I am currently using a Dell Inspiron 6000, which is about a year and a half old. Currently I have 20GB of free space. It has been recommended to me that I simply partition my hard drive... (9 Replies)
Discussion started by: Mike55
9 Replies

4. UNIX for Dummies Questions & Answers

installing unix

hey, i downloaded a version of unix just recently in three files about a gig a piece in size. the website told me to merge the three files into one iso file...i did that using the xtra wizard on alchohol 120%. i tried to boot it from the virtual drive, but all it does is open a window that shows... (2 Replies)
Discussion started by: retrop_ffilc
2 Replies

5. UNIX for Dummies Questions & Answers

Installing Unix

Hello, I am a compete beginner to Unix, I have a very old HP 9000 class D server and i am trying to install HP-UX 11i on it, when i insert the cd into the cd drive on the Server and boot it up it does not automatically boot into the install of Unix. I have tried letting the Server boot... (1 Reply)
Discussion started by: eoghanlee
1 Replies

6. UNIX for Dummies Questions & Answers

Need help Installing UNIX

I have a dual boot - XP and Solaris 10 on my Intel Box. Since quite sometime now, I have been trying to get a driver for the Network card on my box so that I can connect to the Web through Solaris; but Solaris does not have a generic driver for my Gigabit Ethernet 10.100.1000 T-base card. As a... (1 Reply)
Discussion started by: tubbyrana
1 Replies

7. Shell Programming and Scripting

problems installing expect utilty

Hi all, I am trying to install expect utility on RHEL 5. It is showing that we also need to install tcl also in order to run it. I have downloaded expect from Tucows Tucows Download - Download Expect 5.32.1 and tcl from SourceForge.net: Downloading ... Can someone please tell me... (5 Replies)
Discussion started by: vikas027
5 Replies

8. Red Hat

How to install expect after installing tcl on Redhat Linux

Hi, I have install tcl and then expect but I am getting below ouput while trying which expect which expect /usr/bin/which: no expect in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin) I have copied both in... (6 Replies)
Discussion started by: manish_1678
6 Replies

9. Shell Programming and Scripting

How to use expect and send command in UNIX/Linux?

Hello Everyone, I am executing a unix script which logs into 50+ servers (netapp servers) and runs some commands and captures output locally. Below is the code snippet. file1.txt has names of all the remote servers where I am logging in. #!/bin/ksh #!/usr/bin/expect touch... (1 Reply)
Discussion started by: rahul2662
1 Replies

10. Red Hat

Issue in installing expect and Tcl

Hi I need to install expect in redhat. through net I came to know that I must install tcl too in order to make expect work. I have downloaded both packages but not able to install # ls -lrt total 3720 18:33 tcl8.4.20-src.tar.gz 18:33 expect5.45.3.tar.gz 18:40 expect5.45.3... (7 Replies)
Discussion started by: scriptor
7 Replies
VARNISHTEST(1)															    VARNISHTEST(1)

NAME
varnishtest - Test program for Varnish SYNOPSIS
varnishtest [-n iter] [-q] [-v] file [file ...] DESCRIPTION
The varnishtest program is a script driven program used to test the Varnish Cache. The varnishtest program, when started and given one or more script files, can create a number of threads representing backends, some threads representing clients, and a varnishd process. The following options are available: -n iter Run iter number of iterations. -q Be quiet. -v Be verbose. -t Dunno. file File to use as a script SCRIPTS
Example script # Start a varnish instance called "v1" varnish v1 -arg "-b localhost:9080" -start # Create a server thread called "s1" server s1 { # Receive a request rxreq # Send a standard response txresp -hdr "Connection: close" -body "012345 " } # Start the server thread server s1 -start # Create a client thread called "c1" client c1 { # Send a request txreq -url "/" # Wait for a response rxresp # Insist that it be a success expect resp.status == 200 } # Run the client client c1 -run # Wait for the server to die server s1 -wait # (Forcefully) Stop the varnish instance. varnish v1 -stop Example script output The output, running this script looks as follows. The "bargraph" at the beginning of the line is an indication of the level of detail in the line. The second field where the message comes from. The rest of the line is anyones guess :-) # TEST tests/b00000.vtc starting ### v1 CMD: cd ../varnishd && ./varnishd -d -d -n v1 -a :9081 -T :9001 -b localhost:9080 ### v1 opening CLI connection #### v1 debug| NB: Storage size limited to 2GB on 32 bit architecture, #### v1 debug| NB: otherwise we could run out of address space. #### v1 debug| storage_file: filename: ./varnish.Shkoq5 (unlinked) size 2047 MB. ### v1 CLI connection fd = 3 #### v1 CLI TX| start #### v1 debug| Using old SHMFILE #### v1 debug| Notice: locking SHMFILE in core failed: Operation not permitted #### v1 debug| bind(): Address already in use #### v1 debug| rolling(1)... #### v1 debug| #### v1 debug| rolling(2)... #### v1 debug| Debugging mode, enter "start" to start child ### v1 CLI 200 <start> ## s1 Starting server ### s1 listen on :9080 (fd 6) ## c1 Starting client ## c1 Waiting for client ## s1 started on :9080 ## c1 started ### c1 connect to :9081 ### c1 connected to :9081 fd is 8 #### c1 | GET / HTTP/1.1 #### c1 | ### c1 rxresp #### s1 Accepted socket 7 ### s1 rxreq #### s1 | GET / HTTP/1.1 #### s1 | X-Varnish: 422080121 #### s1 | X-Forwarded-For: 127.0.0.1 #### s1 | Host: localhost #### s1 | #### s1 http[ 0] | GET #### s1 http[ 1] | / #### s1 http[ 2] | HTTP/1.1 #### s1 http[ 3] | X-Varnish: 422080121 #### s1 http[ 4] | X-Forwarded-For: 127.0.0.1 #### s1 http[ 5] | Host: localhost #### s1 | HTTP/1.1 200 Ok #### s1 | Connection: close #### s1 | #### s1 | 012345 #### s1 | ## s1 ending #### c1 | HTTP/1.1 200 Ok #### c1 | Content-Length: 9 #### c1 | Date: Mon, 16 Jun 2008 22:16:55 GMT #### c1 | X-Varnish: 422080121 #### c1 | Age: 0 #### c1 | Via: 1.1 varnish #### c1 | Connection: keep-alive #### c1 | #### c1 http[ 0] | HTTP/1.1 #### c1 http[ 1] | 200 #### c1 http[ 2] | Ok #### c1 http[ 3] | Content-Length: 9 #### c1 http[ 4] | Date: Mon, 16 Jun 2008 22:16:55 GMT #### c1 http[ 5] | X-Varnish: 422080121 #### c1 http[ 6] | Age: 0 #### c1 http[ 7] | Via: 1.1 varnish #### c1 http[ 8] | Connection: keep-alive #### c1 EXPECT resp.status (200) == 200 (200) match ## c1 ending ## s1 Waiting for server #### v1 CLI TX| stop ### v1 CLI 200 <stop> # TEST tests/b00000.vtc completed If instead of 200 we had expected 201 with the line:: expect resp.status == 201 The output would have ended with:: #### c1 http[ 0] | HTTP/1.1 #### c1 http[ 1] | 200 #### c1 http[ 2] | Ok #### c1 http[ 3] | Content-Length: 9 #### c1 http[ 4] | Date: Mon, 16 Jun 2008 22:26:35 GMT #### c1 http[ 5] | X-Varnish: 648043653 648043652 #### c1 http[ 6] | Age: 6 #### c1 http[ 7] | Via: 1.1 varnish #### c1 http[ 8] | Connection: keep-alive ---- c1 EXPECT resp.status (200) == 201 (201) failed SEE ALSO
o varnishhist(1) o varnishlog(1) o varnishncsa(1) o varnishstat(1) o varnishtop(1) o vcl(7) HISTORY
The varnishtest program was developed by Poul-Henning Kamp <phk@phk.freebsd.dk> in cooperation with Varnish Software AS. This manual page was written by Stig Sandbeck Mathisen <ssm@linpro.no> using examples by Poul-Henning Kamp <phk@phk.freebsd.dk>. COPYRIGHT
This document is licensed under the same licence as Varnish itself. See LICENCE for details. o Copyright (c) 2007-2008 Varnish Software AS AUTHOR
Stig Sandbeck Mathisen 1.0 2010-05-31 VARNISHTEST(1)
All times are GMT -4. The time now is 01:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy