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.
Shell Scripting

Avatar of undefined
Last Comment
ozo

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
ozo

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck