hii,,
I am trying to automate jira. during my scripting using bash script, in the terminal i got the terminal message like this:
"Configure which ports JIRA will use.
JIRA requires two TCP ports that are not being used by any other
applications on this machine. The HTTP port is where you... (1 Reply)
Hi
I'm trying to run a script " abc.sh" which triggers "use.sh" .
abc.sh is nothing but a "expect" script which provides username and password automatically to the use.sh script.
Please find below the scripts:
#abc.sh
#!/usr/bin/expect -f
exec /root/use.sh
expect "*name*"
send... (1 Reply)
Hi,
Am very new to expect scripting..
Can You please suggest me how to call an expect script inside another expect script..
I tried with
spawn /usr/bin/ksh
send "expect main.exp\r"
expect $root_prompt
and
spawn /usr/bin/ksh
send "main.exp\r"
expect $root_prompt
Both... (1 Reply)
I have an expect script called remote that I want to call from inside my expect script called sudoers.push, here is the code that is causing me issues:
set REMOTE "/root/scripts/remote"
...
log_user 1
send_user "Executing remote script as $user...\n"
send_user "Command to execute is: $REMOTE... (1 Reply)
I am trying to execute expect command inside by small bash script to login into servers using key authentication method. My script is as follows:
#!/bin/bash
HOST=$1
/usr/bin/expect -c "
spawn ssh -i /root/.ssh/id_rsa root@$HOST
expect -exact "Enter... (3 Replies)
Hi I have two scripts one is Expect and other is shell.
I want to merge Expect code in to Shell script so that i can run it using only one script. Can somebody help me out ?
Order to execute: Run Expect_install.sh first and then when installation completes run runTests.sh shell script.
... (1 Reply)
i have defined a function ln_s() for customizing the ln command in script1.sh.
more script1.sh
echo "Starting Execution"
./script2.sh
echo "End of Execution"
ln_s(){
] && return
ln -s "$1" "$2"
}
My script1.sh executes another script2.sh which has the following entry
more script2.sh... (12 Replies)
Hi I am trying the following in my bash script which logs into my machine and runs a command. Trying to solve this using expect.
The first expect statement is hit and it enters the address "10.10.0.10" but when the second expect statement is hit it exits
#!/bin/bash
expect -c '
spawn... (2 Replies)
Discussion started by: skorada
2 Replies
LEARN ABOUT CENTOS
runtest
runtest(1) General Commands Manual runtest(1)NAME
runtest - DejaGnu test driver
SYNOPSIS
runtest [OPTION]...
DESCRIPTION
DejaGnu is a framework for testing programs using Expect. runtest is the driver program for DejaGnu. It controls what tests to run and
how to run them.
OPTIONS --all Output all test results. By default, only unexpected results are displayed.
--debug
Turn on expect internal debugging output. The output is logged to a file called dbg.out.
--build TRIPLET
The configuration TRIPLET for the build system.
--directory DIRECTORY
Run only tests in the specified DIRECTORY.
--help Prints out a help screen and then exits.
--host TRIPLET
The configuration TRIPLET for the host system.
--host_board NAME
The host board defintion to use.
--ignore test1.exp test2.exp ...
Do not run the specified tests.
--mail 'name1 name2 ...'
Electronic mail addresses to receive test results.
--name HOSTNAME
The network HOSTNAME of the target board.
--objdir PATH
PATH is a directory containing compiled test code.
--outdir DIRECTORY
The name of a DIRECTORY for test log output.
--reboot
Reboot the target board when runtest initializes (if supported).
--srcdir PATH
PATH is a directory containing test directories.
--status
Set the exit status to fail on Tcl errors.
--strace N
Turns on expect internal tracing to N levels deep. The output is logged to a file called dbg.out.
--target TRIPLET
The configuration TRIPLET for the target.
--target_board NAME
A list of target board NAMEs to run tests on.
--tool TOOLNAME
Specify the tool to be tested. TOOLNAME controls the test suite applied, and the associated initialization module.
--tool_exec PATH
Specify the PATH to the executable to test.
--tool_opts OPTIONS
Additional OPTIONS to pass to the tool.
--verbose, -v
Turns on more debugging output from test cases and DejaGnu utility code. Use more than once to increase output further.
--version, -V
Prints out the versions of DejaGnu, Expect and Tcl.
--xml, -x
Generate XML output.
-D[number]
Activate the Tcl debugger. number can be either 1 or 0. If it is 1, then the expect shell will break when it starts to run. The
interrupt key will cause DejaGnu to drop to the debugger prompt. If it is 0, DejaGnu starts as usual, but a ^C drops to the debugger
prompt.
Any file name on the command line is assumed to be a subset of the
test names to run. Usually these are the names of the test scripts (eg. foo.exp).
Makefile-style variables are used to specify tool names and their flags; these and other configuration dependent values are saved in the
file site.exp, created during configuration.
EXIT CODES
runtest sets the exit code to 1 if any of the tests failed, or sets it to 0 if all the tests passed.
AUTHOR
Rob Savoye (rob@welcomehome.org)
REPORTING BUGS
Report bugs to <bug-dejagnu@gnu.org>.
COPYRIGHT
Copyright (C) 2005, 2007, 2008 Free Software Foundation, Inc.
This is free software. You may redistribute copies of it under the terms of the GNU General Public License
<http://www.gnu.org/licenses/gpl.html>. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO
The full documentation for DejaGnu is maintained as a Docbook manual. If the info program is properly installed at your site, the command
info dejagnu
should give you access to the complete manual.
2008-02-25 runtest(1)