Script test
script ts
terminal log
The script test is top level script. I am hoping to execute another script "ts" using "test".
The bold line in script "test" is what i am trying to interpret through this post.
As is evident in terminal log, both the script are executed without any error, however I am still not able to generate any logfile , as specified in script "ts".
Please advice:
* Does " set cmd "scriptpath arguments" " only declares a variable named cmd or it also executes the script.
* if it does,why am I not able to generate the logfile.
Im Sorry to bother you guys butim totally new to Unix, so pls help me out if you can. This could be a silly question.
I wanna run the command "ps" in script, but how should I be able to do so? Actually I have made a menu for the user to choose from...for example
1. Show all processes
2.... (1 Reply)
Hello ;
I have a script myscript.sh. If I type at prompt
myscript.sh
I will receive
ksh: myscript.sh: not found
but if I type
./myscript.sh
it works .
What should I do to be able to run myscript just typing
myscript.sh
Many thanks before. (1 Reply)
Hi ,
Kindly advice whats wrong with this script. It is not executing.
...#
#!/bin/ksh
find. -name "b.log"
if ; then
echo "1"
fi
...#
Thanks (5 Replies)
I need to execute a shell script kept in unix machine from windows. User id, password area available.
For eg.
There's a shell script wich moves all the logs kept in my home directory to a directory named LOGS.
Now i need to get this done through windows; either using a batch file, or java... (4 Replies)
Hi,
I have a script get_DB_var.ksh which do a data base call and get some variables as below:
sqlplus -silent $user/$pass@dbname <<END
select col1,
col2,
col3
from table_name where col4=$1;
exit;
END
Now I want to access all these variables i.e.... (9 Replies)
Dear All,
I have a script on my USB and I want to execute it on set of files when I connect via ssh on the server ...
I'm not able to define the path of the script located in the USB ... how can I use this script without copying/moving it into the directory I'm working on in the ssh mode ....... (6 Replies)
Hello,
I wasn't sure where to post this so I posted it here. I've used UNIX quite a bit, LINUX not so much. For some reason, my LINUX script will not execute if I type in the script name and press enter. I'm in the directory where the script is.
test.sh
However, when I use ". ./" it... (5 Replies)
Hi i wrote a script which dosent exists after executing any help
#!/bin/bash
netstat -ptlen | grep 10000
if ; then
echo "Hive Thrift server is running"
exit 0
else
echo "Hive Thrift server is down Trying to Bring up the service" | mail -s "ALERT" team@domain.com
`nohup hive... (7 Replies)
Hi,
I am new to UNIX and want to execute oracle script from unix script.
I have written below script but i am getting below error.
#!/bin/bash
file="/home/usr/control/control_file1"
while read line
do
#$line=@$line
#echo $line
sqlplus tiger/scott@DB
@$line
exit
#echo "$line"
done... (3 Replies)
Discussion started by: vipin kumar rai
3 Replies
LEARN ABOUT SUSE
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.
--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.
--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)
29 Jul 2003 runtest(1)