Link to home
Start Free TrialLog in
Avatar of bobbysch
bobbysch

asked on

How to kill and launch a same process repeatly inside a same loop?

Hello,

Normally I do this separately:
while true; do command; done
while true; do sleep 10; pkill command; done

I wonder if it's possible to do this with a loop only.

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of ozo
ozo
Flag of United States of America image

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