I want to save the contents of a variable to a file. How can that be achieved?
I have tried with:
echo $varname > textfile.txt
but for some reason it does not print anything. (1 Reply)
I am trying unsuccessfully to set into a variable a specific part of command output:
The command output will be as:
line 1: <varied>
line 2: 2 options:
option 1:
Set view: ** NONE **
or
option 2:
Set view: <different_name_of_views_always_without_spaces>
and I would like to get into... (7 Replies)
Hi,
I have a 3rd party tool on Solaris 8. I am running it thorugh my script but I am not able to capture its output into a variable.
Like, I tried, but did not work.
output=`/usr/bin/myTool`
echo $output
Also, I tried saving in a file but when I run, output is always shown on the... (19 Replies)
I am trying to use send and receive using expect. the expect_out(buffer) is working fine while it is running it as foreground. But the same script when it is ran as background, the expect_out(buffer) errored out.
Is there any factor influence when we run script in foreground and in background? ... (0 Replies)
Hi
i have a file which has mutiple line in it.
inside that i have a pattern similar to this
/abc/def/hij
i want to fine the pattern starting with "/" and get the first word in between the the symbols "/" i.e. "abc" in this case into a variable.
thanks in advance (13 Replies)
Hi,
I have 80 large files, from which I want to get a specific value to run a Bash script. Firstly, I want to get the part of a file which contains this:
Name =A
xxxxxx
yyyyyy
zzzzzz
aaaaaa
bbbbbb
Value = 57
This is necessary because in a file there are written more lines which... (6 Replies)
Hello,
I have a script that checks every file with a specific extension in a specific directory. The file names contain some numerical output and I am recording the file names with the best n outcomes.
The script finds all files in the directory with the extension .out.txt and uses awk to... (12 Replies)
Hi all, I have a file that contains characters. How do I get total of spesific character from that file and save the count to a variable for doing for calculation.
data.txt
1
2
2
2
2
3
3
4
5
6
7
8
5
4
3
4 (5 Replies)
I am trying to download all files from a user authentication, password protected https site, with a particular extension (.bam). The files are ~20GB each and I am not sure if the below is the best way to do it. I am also not sure how to direct the downloaded files to a folder as well as external... (7 Replies)
Discussion started by: cmccabe
7 Replies
LEARN ABOUT REDHAT
runtest
runtest(1) General Commands Manual runtest(1)NAME
runtest - the DejaGnu test driver program
SYNOPSIS
runtest [ options ]
DESCRIPTION
DejaGnu is a framework for running test suites on GNU tools. It is written in expect, which uses TCL (Tool command language). runtest is
the test driver program; use it to control what tests to run, and variations on how to run them.
You can find a comprehensive description of DejaGnu and runtest in The DejaGnu Testing Framework or its Info version, dejagnu.info.
OPTIONS --all Print all test output to screen. By default, only unexpected results are displayed.
--baud rate
Set the baud rate for a serial line connection. Some serial interface programs (like tip) don't use this value but instead use a
separate initialization file.
--connect type
The type of connection to use. The choices are rlogin, telnet, rsh, kermit, tip and mondfe.
--debug
Turn on expect internal debugging output. All output is logged to a file called dbg.out. The output of the --strace also goes into
this file.
--help Prints out a help screen and then exits.
--host type
The configuration string for the host.
--ignore test1.exp test2.exp ...
Do not run the specified tests. 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.
--strace N
Turns on expect internal tracing to N levels deep.
--target type
The configuration string for the target.
--tool toolname
Specify the tool to be tested. toolname controls the test suite applied, and the associated initialization module.
--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.
-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. All ^C's
drop DejaGnu back to the debugger prompt. A 0 starts DejaGnu like normal, 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 expect test driver, ie... special.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.
SEE ALSO
The DejaGnu Testing Framework (dejagnu.info). This is the DejaGnu manual; its source is the SGML files doc/*.sgml. in the DejaGnu distri-
bution.
AUTHOR
Rob Savoye (rob@welcomehome.org)
08 Dec 1998 runtest(1)