Script started on Thu Sep 14 15:30:54 2000
[clangsto@nisha proj1]$ ./shell
myPrompt:ls
/bin/ls
child child.cpp child.input shell shell.cpp shell.output test
myPrompt:child
child does not exist
myPrompt:./child
/home/clangsto/proj1/child
number of cla's = 1
command = ./child
Please enter your first name: chad
Hello! chad
myPrompt:./test
/home/clangsto/proj1/test
/home/clangsto/proj1/test is not a command
myPrompt:ls ..
/bin/ls
Desktop child.txt cs3204 nsmail shell up
child cs1206 down proj1 test
myPrompt:../child
/home/clangsto/child
number of cla's = 1
command = ../child
Please enter your first name: chad
Hello! chad
myPrompt:netstat -c > netstat.ouput &
/bin/netstat
myPrompt:./child 1 2 3 < child.input > child.output
/home/clangsto/proj1/child
myPrompt:cat child.ouput
/bin/cat
cat: child.ouput: No such file or directory
myPrompt:ls
/bin/ls
child child.input netstat.ouput shell.cpp test
child.cpp child.output shell shell.output
myPrompt:cat child.output
/bin/cat
number of cla's = 4
command = ./child 1 2 3
Please enter your first name: Hello! whadayawant
myPrompt:ps -x
/bin/ps
PID TTY STAT TIME COMMAND
938 tty1 S 0:00 -bash
973 tty1 S 0:00 script shell.output
974 tty1 S 0:00 script shell.output
975 pts/0 S 0:00 bash -i
985 pts/0 S 0:00 ./shell
991 pts/0 S 0:00 netstat -c
996 pts/0 R 0:00 ps -x
myPrompt:kill 991
/bin/kill
myPrompt:./child 1 2 3 < child.input
/home/clangsto/proj1/child
number of cla's = 4
command = ./child 1 2 3
Please enter your first name: Hello! whadayawant
myPrompt:exit
[clangsto@nisha proj1]$ exit Script done on Thu Sep 14 15:33:22 2000
|