Looping a bin file [closed]

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












-2















I need to run an infinite loop command on a bin file



Here's what I need......



The bin files contents runs for 100 seconds
I need to either stop this @ 90 seconds start a new process and start the bin file again as if it was never stopped in an infinite loop.



Or run the bin file for its duration then loop when it's finished










share|improve this question















closed as unclear what you're asking by Kusalananda, jimmij, JdeBP, Rui F Ribeiro, roaima Feb 13 at 22:44


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.













  • 1





    Unclear: By "bin file", do you mean "an executable program"? What is the condition for stopping the program at 90 seconds vs. letting it run until it terminates naturally? By "stopping", do you mean temporarily pause its execution and then resume it, or do you mean terminate the program and restart it? What have you already tried and what was your issues with that?

    – Kusalananda
    Feb 13 at 6:51







  • 1





    Instead of asking about a "bin file" and then objecting to answers because of some mysterious "data stream", state in the question what you are actually doing and what your overall goal is. Don't assume that you can just blithely mention "the USB device" without explaining what USB device and what on Earth its relationship to the question actually asked is. Explaining that a "bin file" "runs 5.2mb data" is just incomprehensible. Answerers cannot read your mind to find out what you are referring to by all these.

    – JdeBP
    Feb 13 at 11:17











  • So please put all that in your question. Not here in the comments. Make it easy for us to help you.

    – roaima
    Feb 13 at 22:44
















-2















I need to run an infinite loop command on a bin file



Here's what I need......



The bin files contents runs for 100 seconds
I need to either stop this @ 90 seconds start a new process and start the bin file again as if it was never stopped in an infinite loop.



Or run the bin file for its duration then loop when it's finished










share|improve this question















closed as unclear what you're asking by Kusalananda, jimmij, JdeBP, Rui F Ribeiro, roaima Feb 13 at 22:44


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.













  • 1





    Unclear: By "bin file", do you mean "an executable program"? What is the condition for stopping the program at 90 seconds vs. letting it run until it terminates naturally? By "stopping", do you mean temporarily pause its execution and then resume it, or do you mean terminate the program and restart it? What have you already tried and what was your issues with that?

    – Kusalananda
    Feb 13 at 6:51







  • 1





    Instead of asking about a "bin file" and then objecting to answers because of some mysterious "data stream", state in the question what you are actually doing and what your overall goal is. Don't assume that you can just blithely mention "the USB device" without explaining what USB device and what on Earth its relationship to the question actually asked is. Explaining that a "bin file" "runs 5.2mb data" is just incomprehensible. Answerers cannot read your mind to find out what you are referring to by all these.

    – JdeBP
    Feb 13 at 11:17











  • So please put all that in your question. Not here in the comments. Make it easy for us to help you.

    – roaima
    Feb 13 at 22:44














-2












-2








-2








I need to run an infinite loop command on a bin file



Here's what I need......



The bin files contents runs for 100 seconds
I need to either stop this @ 90 seconds start a new process and start the bin file again as if it was never stopped in an infinite loop.



Or run the bin file for its duration then loop when it's finished










share|improve this question
















I need to run an infinite loop command on a bin file



Here's what I need......



The bin files contents runs for 100 seconds
I need to either stop this @ 90 seconds start a new process and start the bin file again as if it was never stopped in an infinite loop.



Or run the bin file for its duration then loop when it's finished







shell-script






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 13 at 21:57









Rui F Ribeiro

41.2k1481140




41.2k1481140










asked Feb 13 at 6:40









Wayne ThompsonWayne Thompson

1




1




closed as unclear what you're asking by Kusalananda, jimmij, JdeBP, Rui F Ribeiro, roaima Feb 13 at 22:44


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









closed as unclear what you're asking by Kusalananda, jimmij, JdeBP, Rui F Ribeiro, roaima Feb 13 at 22:44


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









  • 1





    Unclear: By "bin file", do you mean "an executable program"? What is the condition for stopping the program at 90 seconds vs. letting it run until it terminates naturally? By "stopping", do you mean temporarily pause its execution and then resume it, or do you mean terminate the program and restart it? What have you already tried and what was your issues with that?

    – Kusalananda
    Feb 13 at 6:51







  • 1





    Instead of asking about a "bin file" and then objecting to answers because of some mysterious "data stream", state in the question what you are actually doing and what your overall goal is. Don't assume that you can just blithely mention "the USB device" without explaining what USB device and what on Earth its relationship to the question actually asked is. Explaining that a "bin file" "runs 5.2mb data" is just incomprehensible. Answerers cannot read your mind to find out what you are referring to by all these.

    – JdeBP
    Feb 13 at 11:17











  • So please put all that in your question. Not here in the comments. Make it easy for us to help you.

    – roaima
    Feb 13 at 22:44













  • 1





    Unclear: By "bin file", do you mean "an executable program"? What is the condition for stopping the program at 90 seconds vs. letting it run until it terminates naturally? By "stopping", do you mean temporarily pause its execution and then resume it, or do you mean terminate the program and restart it? What have you already tried and what was your issues with that?

    – Kusalananda
    Feb 13 at 6:51







  • 1





    Instead of asking about a "bin file" and then objecting to answers because of some mysterious "data stream", state in the question what you are actually doing and what your overall goal is. Don't assume that you can just blithely mention "the USB device" without explaining what USB device and what on Earth its relationship to the question actually asked is. Explaining that a "bin file" "runs 5.2mb data" is just incomprehensible. Answerers cannot read your mind to find out what you are referring to by all these.

    – JdeBP
    Feb 13 at 11:17











  • So please put all that in your question. Not here in the comments. Make it easy for us to help you.

    – roaima
    Feb 13 at 22:44








1




1





Unclear: By "bin file", do you mean "an executable program"? What is the condition for stopping the program at 90 seconds vs. letting it run until it terminates naturally? By "stopping", do you mean temporarily pause its execution and then resume it, or do you mean terminate the program and restart it? What have you already tried and what was your issues with that?

– Kusalananda
Feb 13 at 6:51






Unclear: By "bin file", do you mean "an executable program"? What is the condition for stopping the program at 90 seconds vs. letting it run until it terminates naturally? By "stopping", do you mean temporarily pause its execution and then resume it, or do you mean terminate the program and restart it? What have you already tried and what was your issues with that?

– Kusalananda
Feb 13 at 6:51





1




1





Instead of asking about a "bin file" and then objecting to answers because of some mysterious "data stream", state in the question what you are actually doing and what your overall goal is. Don't assume that you can just blithely mention "the USB device" without explaining what USB device and what on Earth its relationship to the question actually asked is. Explaining that a "bin file" "runs 5.2mb data" is just incomprehensible. Answerers cannot read your mind to find out what you are referring to by all these.

– JdeBP
Feb 13 at 11:17





Instead of asking about a "bin file" and then objecting to answers because of some mysterious "data stream", state in the question what you are actually doing and what your overall goal is. Don't assume that you can just blithely mention "the USB device" without explaining what USB device and what on Earth its relationship to the question actually asked is. Explaining that a "bin file" "runs 5.2mb data" is just incomprehensible. Answerers cannot read your mind to find out what you are referring to by all these.

– JdeBP
Feb 13 at 11:17













So please put all that in your question. Not here in the comments. Make it easy for us to help you.

– roaima
Feb 13 at 22:44






So please put all that in your question. Not here in the comments. Make it easy for us to help you.

– roaima
Feb 13 at 22:44











1 Answer
1






active

oldest

votes


















1














The timeout command does exactly what you require



timeout 90 /path/to/your/binfile


The first argument is the number of seconds, exceeding which the process will be killed. If the process ends earlier, then timeout command will do nothing.



You can add a while(1) loop to do this endlessly . In bash it would look like



 while [ 1 ]; do
timeout 90 /path/to/your/binfile
done





share|improve this answer


















  • 2





    Please update the question with your experiments and more details about the stream. The current question just asks for an equivalent of timeout command

    – amisax
    Feb 13 at 11:07

















1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














The timeout command does exactly what you require



timeout 90 /path/to/your/binfile


The first argument is the number of seconds, exceeding which the process will be killed. If the process ends earlier, then timeout command will do nothing.



You can add a while(1) loop to do this endlessly . In bash it would look like



 while [ 1 ]; do
timeout 90 /path/to/your/binfile
done





share|improve this answer


















  • 2





    Please update the question with your experiments and more details about the stream. The current question just asks for an equivalent of timeout command

    – amisax
    Feb 13 at 11:07















1














The timeout command does exactly what you require



timeout 90 /path/to/your/binfile


The first argument is the number of seconds, exceeding which the process will be killed. If the process ends earlier, then timeout command will do nothing.



You can add a while(1) loop to do this endlessly . In bash it would look like



 while [ 1 ]; do
timeout 90 /path/to/your/binfile
done





share|improve this answer


















  • 2





    Please update the question with your experiments and more details about the stream. The current question just asks for an equivalent of timeout command

    – amisax
    Feb 13 at 11:07













1












1








1







The timeout command does exactly what you require



timeout 90 /path/to/your/binfile


The first argument is the number of seconds, exceeding which the process will be killed. If the process ends earlier, then timeout command will do nothing.



You can add a while(1) loop to do this endlessly . In bash it would look like



 while [ 1 ]; do
timeout 90 /path/to/your/binfile
done





share|improve this answer













The timeout command does exactly what you require



timeout 90 /path/to/your/binfile


The first argument is the number of seconds, exceeding which the process will be killed. If the process ends earlier, then timeout command will do nothing.



You can add a while(1) loop to do this endlessly . In bash it would look like



 while [ 1 ]; do
timeout 90 /path/to/your/binfile
done






share|improve this answer












share|improve this answer



share|improve this answer










answered Feb 13 at 8:50









amisaxamisax

1,529515




1,529515







  • 2





    Please update the question with your experiments and more details about the stream. The current question just asks for an equivalent of timeout command

    – amisax
    Feb 13 at 11:07












  • 2





    Please update the question with your experiments and more details about the stream. The current question just asks for an equivalent of timeout command

    – amisax
    Feb 13 at 11:07







2




2





Please update the question with your experiments and more details about the stream. The current question just asks for an equivalent of timeout command

– amisax
Feb 13 at 11:07





Please update the question with your experiments and more details about the stream. The current question just asks for an equivalent of timeout command

– amisax
Feb 13 at 11:07


Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?