UNIX Help Please

coybrian
coybrian used Ask the Experts™
on
i have the program cat >Halley
                            while :
                                do
                                    sleep 5
                                   done
                                ctrl-d
                                $


i need to be able to first execute Halley in the background, second then print $!, then kill Halley, then run ps to verify success of killing Halley and i need to do these one step at a time if anyone can it would be greatly appreciated.  Thank you.
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:
help would be greatly appreciated
Commented:
Halley &
killall -9 Halley
ps aux | grep Halley

Commented:
you have to add echo $! after Halley & to print out

Commented:
Heh missed that part.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
Recommendation: Accept comment form Zakabog
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

DominicCronin
EE Cleanup Volunteer

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial