source tcl script with arguments

Want to know source tcl script with arguments? we have a huge selection of source tcl script with arguments information on alibabacloud.com

Use the TCL/EXPECT script to implement telnet Batch Processing

There are many methods to complete telnet batch processing. Here we can use a TCL/CT script. Next we will introduce this process. This is a simple TCL/terminal CT script to complete telnet to a remote device. Through this example, we can see that it is very concise to construct a test program using the

Tcl/keep CT automated test script instance 7-packet Construction Test

I mentioned earlier the idea of using Nemesis to construct packets for testing. Today I will introduce such a script.The function of this script is to construct and send packets with different MAC addresses. With this script, we can test the maximum number of MAC addresses that can be learned on each port of the switch. To put it simply, Nemesis runs on Linux or windows. In Linux, you must have the root per

Tcl Script Learning 11: Proc Application (with default parameters)

①: The use of the return value of the calling functionProc Test {a {b 7} {str "Hello World"}} {Puts "$str"return [expr $a * $b]}Puts "[Test 7 7]"Example②:Proc Test {args} {Puts "input values are: $args"}Test my name is ZhouliResult:input values Are:my name is ZhouliTo verify the beginning of the 2nd Word.Example③:Proc Config_sys {args} {Array Set Inarr $argsParray Inarr}Config_sys-sysname "HUB100"-ipaddr 192.168.10.1-date 2003-11-21-time 21:03:45Result:Inarr (-date) = 2003-11-21Inarr (-ipaddr) =

Tcl/keep CT automated test script instance 2-Main Program

community.You can add test items as needed. There are two special test item names: CMD and script.The cmd test item calls the cmd. Exp script, which is described later. Its main function is to execute all the commands in a text file. The text file name is provided by the-C option.Script test item. It will call the source command to execute the $ execScript script

Tcl/expect automated test script instance 1-Telnet to the target machine

Starting from today, I have successively pasted some of my automated test scripts to help beginners. Because no suitable server storage is found Code So the code is first pasted in the blog body, and then complete code download is provided. My automated test script runs in Debian Linux and is interpreted and executed using/usr/bin/benchmark CT. To simplify the processing, write some common functions into functions and put them in the commonlib. E

Tcl script calls the high-level API to implement instrumentation usage and automated test cases for host creation configuration

#设置Chassis的基本参数, including IP address, number of ports, etc.Set CHASSISADDR 10.132.238.190Set Islot 1Set Portlist {One-by-one}; #端口的排列顺序是port1, Port2If {[Catch {#加载STC API LibCd.. /source#加载HLAPI Libsource./cstc.tclSetlogoption-debug Enable# Start connecting the machineTestdevice Chassis1 $chassisAddr# Start reserving two portsFor {set I 0} {$i Chassis1 createtestport-portlocation $islot/[lindex $portList $i]-portname port[expr $i +1]-porttype Etherne

Tcl script calls the high-level API to implement its own proactive test example for instrumentation usage and host creation configuration

#设置Chassis的基本參数, including the IP address. Number of ports, etc.Set CHASSISADDR 10.132.238.190Set Islot 1Set Portlist {One-by-one}; #端口的排列顺序是port1, Port2If {[Catch {#载入STC API LibCd.. /source#载入HLAPI Libsource./cstc.tclSetlogoption-debug Enable# Start connecting the machineTestdevice Chassis1 $chassisAddr# Start with two ports reservedFor {set I 0} {$i Chassis1 createtestport-portlocation $islot/[lindex $portList $i]-portname port[expr $i +1]-porttype

Xilinx TCL script without Gui

How to creat a Xilinx TCL script without Gui? Try the following example: Project New my_proj1.iseProject set family spartan3eProject set device xc3s500eProject set package fg320Project set speed-4 ######################################## ######################################## Modify the XFile add argument for the source files in the Design##################

Shell Basics: Input 2 integers using read, command-line script arguments, and calculate

"youmustinputtwonumber" exit1 else expr$a+$b>/dev/null if[$?-eq0] then echo"a-b=$(($a-$b))" echo"a+b=$(($a+$b))" echo"a*b=$(($a*$b))" echo"a/b=$(($a/$b))" else echo"inputisnotzhengshu" exit1 fi fi The result of the execution is as follows: null parameter, 3 will prompt must enter 2 numbers, the argument contains non-numeric input is not an integer; [baby@localhost~]$shb.sh3a inputisnotzhengshu [baby@localhost~]$shb.sh323 youmustinputtwonumber [baby@localhost~]$shb.s

PHP Command Line PHP script execution considerations-PHP source code

Display source with stripped comments and whitespace. -f Parse . -v Version number -c | Look for php.ini file in this directory -a Run interactively -d foo[=bar] Define INI entry foo with value 'bar' -e Generate extended information for debugger/profiler -z Load Zend extension . -l Syntax check only (lint)

Storm source Profiling (1): Storm script

...] Runs the main method of class with the specified arguments. The storm jars and Configs in ~/.storm is put on the classpath. The process is configured so Stormsubmitter (Http://nathanmarz.github.com/storm/doc/backtype/storm/StormSubmitte r.html) would upload the jar at Topology-jar-path when the topology is submitted. """Exec_storm_class (Klass, Jvmtype="-client", Extrajars=[jarfile, Conf_dir, Storm_dir +"/bin"], args=args, jvmopts=["-

Badboy script parameterization using data source Excel

Tags: looping using the image Sogou table header load from variable Excel1. First create a new Excel, here The example I write very simple, from two consists of data, the first behavior of the table header. See:2. Record the script, see previous article, record a very simple Sogou query3. Add the data source, and in the tools panel find the data source and drag i

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.