11-04-2008
may be i am not clear with my question
let me explain you more clearly
i have afollowing script
example1.sh
cd /opt/qcom/bin/tests
echo "=================================================================================================== =========================="
let totalcount=totalcount+1;
./fbtest
if [ $? -ne 0 ]
then
echo "script: TEST FAILED"
testcase="fb_test"
echo "testcase is = $testcase"
echo "the test cases failing in $iteration_count iteration is $testcase driver" >> /home/mohanav/DeviceDrivers/7625/FFA/1305/1RUN/1305_FFA_7625_3run.txt
let failcount=failcount+1;
fi
echo "=================================================================================================== =========================="
let totalcount=totalcount+1;
modprobe smd_test
sleep 5
./smd_test
if [ $? -ne 0 ]
then
echo "script: TEST FAILED"
testcase="smd_test"
echo "testcase is = $testcase"
echo "the test cases failing in $iteration_count iteration is $testcase driver" >> /home/mohanav/DeviceDrivers/7625/FFA/1305/1RUN/1305_FFA_7625_3run.txt
let failcount=failcount+1;
fi
echo "=================================================================================================== =========================="
let totalcount=totalcount+1;
./pmem_test
if [ $? -ne 0 ]
then
echo $?
echo "script: TEST FAILED"
testcase="pmem_test"
echo "testcase is = $testcase"
echo "the test cases failing in $iteration_count iteration is $testcase driver" >> /home/mohanav/DeviceDrivers/7625/FFA/1305/1RUN/1305_FFA_7625_3run.txt
let failcount=failcount+1;
fi
echo "=================================================================================================== =========================="
let totalcount=totalcount+1;
./clk_test.sh -v
if [ $? -ne 0 ]
then
echo $?
echo "script: TEST FAILED"
testcase="clk_test"
echo "testcase is = $testcase"
echo "the test cases failing in $iteration_count iteration is $testcase driver" >> /home/mohanav/DeviceDrivers/7625/FFA/1305/1RUN/1305_FFA_7625_3run.txt
let failcount=failcount+1;
fi
echo "=================================================================================================== =========================="
let totalcount=totalcount+1;
./vreg_test.sh
if [ $? -ne 0 ]
then
echo $?
echo "script: TEST FAILED"
testcase="vreg_test"
echo "testcase is = $testcase"
echo "the test cases failing in $iteration_count iteration is $testcase driver" >> /home/mohanav/DeviceDrivers/7625/FFA/1305/1RUN/1305_FFA_7625_3run.txt
let failcount=failcount+1;
fi
Now the probelm is if i run this script it will excute them by one by one ........
but now my requirmnet is i need to execute them randomly using another script
like
./pmem_test,
./fb_test
so how to do this
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Can anyone tell me now to achieve the printf %.*s functionality in shell script, (sh/ksh). I want to append x number of (same)characters at the end of a file without using normal looping.
Cheers.
qanda (6 Replies)
Discussion started by: qanda
6 Replies
2. Solaris
I tried rebooting my Sun server just a few minutes ago and I got the following at boot:
--
Sun Fire 280R (UltraSPARC-III+) , No Keyboard
Copyright 1998-2002 Sun Microsystems, Inc. All rights reserved.
OpenBoot 4.5, 1024 MB memory installed, Serial #xxxxxxxxx
Ethernet address... (6 Replies)
Discussion started by: deckard
6 Replies
3. AIX
Hi, how can I find out though kron shell (aix 4.2) what the label of a tape is ?
Also, how can I find out if that tape has been used for an mksysb and when ? (1 Reply)
Discussion started by: Browser_ice
1 Replies
4. Solaris
Hello All,
I m very new to this forum.
i m having SUN NETRA X1 server with 40 GB HDD (Seagate) & 128 MB RAM.
i m trying this server for SUN 10 Practise.
As i m installing SUN 9 /10 with CD ,its giving me error after OK propmt
***************************
#boot cdrom
or
#boot cdrom... (16 Replies)
Discussion started by: amrut_k
16 Replies
5. Shell Programming and Scripting
what is the maximum number of parameter we can pass to a shell script function (8 Replies)
Discussion started by: alokjyotibal
8 Replies
6. Solaris
I have created 1 LUN.
1)LUN 00BB 200GB /dev/rdsk/c1t3d44
/dev/rdsk/c2t28d44
/dev/rdsk/c3t19d44
/dev/rdsk/c4t12d44
2) Already added the new entry into sd.conf and rebooted.
3) Already done these:
powercf –q
power config
4) power display dev=all
I can see the new Symmetrix device.... (1 Reply)
Discussion started by: sirius20d
1 Replies
7. Solaris
Is there a way to recover label?
I could install (sparc) Solaris again, but it would take a lot of time. (5 Replies)
Discussion started by: orange47
5 Replies
8. Shell Programming and Scripting
Hi all,
This is the first time i am using expect.
I am trying to call a function with in the shell script. The function will shh to a new server and will pass the password using expect and send. I need help in calling the fuction i am getting follaowing errors...
here the script
... (8 Replies)
Discussion started by: firestar
8 Replies
9. Solaris
Hi Guys,
Do you have any script to label a disk automatically.
It is part of my script but I am not able to find solution to label this inside script without user intervention. (2 Replies)
Discussion started by: prashant2507198
2 Replies
10. Solaris
This is first time post...found this forum when looking for possible solution to fix my sun pc. Just one day can't boot it already showing the following:
Boot device: disk File args:
Bad magic number in disk label
Can't open disk label package
Evaluating: boot
Can't open boot device... (40 Replies)
Discussion started by: SHuKoSuGi
40 Replies
exit(1) User Commands exit(1)
NAME
exit, return, goto - shell built-in functions to enable the execution of the shell to advance beyond its sequence of steps
SYNOPSIS
sh
exit [n]
return [n]
csh
exit [ ( expr )]
goto label
ksh
*exit [n]
*return [n]
DESCRIPTION
sh
exit will cause the calling shell or shell script to exit with the exit status specified by n. If n is omitted the exit status is that of
the last command executed (an EOF will also cause the shell to exit.)
return causes a function to exit with the return value specified by n. If n is omitted, the return status is that of the last command exe-
cuted.
csh
exit will cause the calling shell or shell script to exit, either with the value of the status variable or with the value specified by the
expression expr.
The goto built-in uses a specified label as a search string amongst commands. The shell rewinds its input as much as possible and searches
for a line of the form label: possibly preceded by space or tab characters. Execution continues after the indicated line. It is an error to
jump to a label that occurs between a while or for built-in command and its corresponding end.
ksh
exit will cause the calling shell or shell script to exit with the exit status specified by n. The value will be the least significant 8
bits of the specified status. If n is omitted then the exit status is that of the last command executed. When exit occurs when executing
a trap, the last command refers to the command that executed before the trap was invoked. An end-of-file will also cause the shell to exit
except for a shell which has the ignoreeof option (See set below) turned on.
return causes a shell function or '.' script to return to the invoking script with the return status specified by n. The value will be the
least significant 8 bits of the specified status. If n is omitted then the return status is that of the last command executed. If return
is invoked while not in a function or a '.' script, then it is the same as an exit.
On this man page, ksh(1) commands that are preceded by one or two * (asterisks) are treated specially in the following ways:
1. Variable assignment lists preceding the command remain in effect when the command completes.
2. I/O redirections are processed after variable assignments.
3. Errors cause a script that contains them to abort.
4. Words, following a command preceded by ** that are in the format of a variable assignment, are expanded with the same rules as a vari-
able assignment. This means that tilde substitution is performed after the = sign and word splitting and file name generation are not
performed.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
break(1), csh(1), ksh(1), sh(1), attributes(5)
SunOS 5.10 15 Apr 1994 exit(1)