Link to home
Start Free TrialLog in
Avatar of coybrian
coybrian

asked on

UNIX Help Please

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.
Avatar of coybrian
coybrian

ASKER

help would be greatly appreciated
ASKER CERTIFIED SOLUTION
Avatar of Zakabog
Zakabog

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
you have to add echo $! after Halley & to print out
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