# Updated Tue Feb 28, 2006, 1145 hours. # Separate into separate files if you wish # Notes: # o These tests will attempt to create the directories kenw1 and kenw1/kenw2 # o The script assumes fib is in your home directory # o This is not intended to be a complete test # # basic stuff export echo hello world mkdir kenw1 chdir kenw1 export mkdir kenw2 chdir kenw2 export chdir ../.. export chdir export # more stuff chdir kenw1 gawk BEGIN{printf("\044\044\044\n");} # simple variables set X echo set Y HELLO set Z WORLD $X $Y $Z $X$.X # more variables set X /etc/passwd chdir .. /bin/sort -o ./kenw1/sort.out $X # $? (depends on having the fib binary) chdir export ./fib -n 100 echo Exit status for fib was $? # simple bg, wait (depends on having the fib binary) export bg ./fib -n 100 wait -1 # simple bg, wait (depends on having the fib binary) export bg ./fib -n 100 echo bg process $! bg ./fib -n 200 echo bg process $! bg ./fib -n 300 echo bg process $! bg ./fib -n 400 echo bg process $! wait -1 wait -1 wait -1 wait -1 # try it again bg ./fib -n 100 set Q $! pause $Q bg ./fib -n 200 set R $! pause $R resume $R wait $R resume $Q wait $Q # now let's quit quit 0