Skip to main content

Questions tagged [infinite-loop]

An infinite loop occurs when a system repeats a set of steps ad infinitum. Generally, the system must be halted in an adverse way to stop the infinite loop.

Filter by
Sorted by
Tagged with
42 votes
12 answers
275k views

How can I perform a ping every X minutes and check the response time?

I am currently working in a big company and we have serious latency issues. This is happening in a process control system, and is unacceptable (Open a valve sometimes take 2 minutes before command ...
Waza_Be's user avatar
  • 555
12 votes
2 answers
51k views

How to infinite loop every video I play as defaut on MPV player without having to press shift+L hotkey every single time?

I think the title is clear without filling the body. Every time I play new video the inf loop is gone and I need to press shift+L again each time. How to just make this my default setting. As far as I ...
galih_ken's user avatar
  • 131
9 votes
3 answers
26k views

How can I break a symbolic link loop?

While I was trying to compile a C shared object library, I accidentally created two symbolic links which point to each other. Is there a way to get rid of them without nuking the whole directory? I ...
Evan Kroske's user avatar
7 votes
10 answers
15k views

List all files and dirs without recursion with junctions

Is there a native|portable tool that can give me a unicode or a system local-compatible list of all files and directories under a path recursively, without recursing into junction points or links, in ...
n611x007's user avatar
  • 6,416
7 votes
2 answers
387 views

I've trapped myself outside my Mac. Help

A dreaful mistake lead to the following situation: Each and every one of my mouse buttons loads the Dashboard. I can't change the settings, not without using the mouse. It's a Catch 22. How can I ...
Konzepz's user avatar
  • 795
6 votes
1 answer
1k views

How do I abort a long-running regex replace?

Edit: While I refer to RegEx in my background, I'm not looking for you to fix my RegExp (thanks for trying though) - rather I want to know "how do I abort a search/replace in NotePad++". Environment ...
Greg's user avatar
  • 183
5 votes
2 answers
2k views

Teamviewer to a computer that is Teamviewered to you [closed]

What happens when I Teamviewer to a computer that is Teamviewered back to me? Will it create an Infinite loop?
sirwoetang's user avatar
4 votes
2 answers
4k views

Windows 8 reboot causes an infinite loop

I have installed Windows 8 Professional 64-bit in a VHD that dual boots with Windows 7. The VHD is dynamically expanding with a 128 GB capacity. When windows 8 reboots, it seems to get stuck in an ...
ctype.h's user avatar
  • 863
4 votes
0 answers
1k views

Windows 10 recovery/restore infinite loop without login access

my asus laptop TP300L is stuck in an infinite loop, I cannot access windows as the computer reboots before I can do anything. Situation here is the sequence of screens I get: asus logo a spinner ...
Raphael's user avatar
  • 41
3 votes
4 answers
19k views

CMD keep running program

This isn't very googleable, and other than writing prog.exe -params several times in a batch file (which would obviously only work as many times as I wrote it) I can't think how to repeatedly do this. ...
OJFord's user avatar
  • 621
3 votes
4 answers
3k views

Loop: Start program and kill after time out

for debugging reasons I want to spot one of those bugs showing up just occasionally. Therefore I want to code a while loop in the shell starting the program (if it will segfault => that's what I want)...
math's user avatar
  • 2,653
3 votes
1 answer
515 views

Windows 10: How to access the advanced boot menu before booting (which fails) in order to discard hibernation state and instead boot normally?

I am currently stuck in a never-ending boot sequence in Windows 10 after failing to properly shutdown due to a misbehaving USB thumb drive. How can I escape? I will explain step-by-step what happened: ...
summerrain's user avatar
3 votes
1 answer
6k views

Terminal command for infinite execution of application

I tried almost every keyword on Google and still didn't came up with an answer. So hopefully one of you knows. What is the terminal command keep a application running after it fails or stopped ...
sparkle's user avatar
  • 133
2 votes
8 answers
130k views

How to break out of a program in an infinite loop?

When running a program that goes into an infinite loop in the terminal, how would I bring back the command prompt? (I'm using Fedora core 5)
trinity's user avatar
  • 191
2 votes
1 answer
3k views

Ctrl+C to break an infinite loop and then do something outside the loop in a bash script without exiting?

I have read so many answers and they all just suggest to kill the script or send it to the background etc. What I want is while true do something... if(ctrl+c is pressed break) done echo "Out of ...
quanta's user avatar
  • 141
2 votes
0 answers
1k views

Mimikatz infinite loop

When I'm trying to run mimikatz in powershell, it goes into an infinite loop everytime. I searched a lot but I couldn't find a solution. PS C:\Temp> .\mimikatz.exe .#####. mimikatz 2.2.0 (x64)...
1zverg's user avatar
  • 131
2 votes
2 answers
973 views

Upgrade to Windows 10 Pro, version 1511, 10586 occur boot restart loop (reboot loop)

After successful update from Windows 10 Pro Build 10240 to Build 10586 (november upgrade) pc just start rebooting constantly on boot logo. I can't choose "Safe Mode" option on boot. With Windows 10 ...
Sergey L's user avatar
  • 121
1 vote
5 answers
203 views

How to listen to a file by looping regions?

I need to listen to audio files in short looped fragments (useful for transcribing). I have found a few apps that let me define regions (VLC, Audacity) and that let me play these regions in a loop, ...
nachocab's user avatar
  • 157
1 vote
1 answer
384 views

Stuck in a while-loop in GNU/SU (seismic unix)

I'm new to programming. I have this loop (it's part of a data processing script) and I have it all good until this section cause I can't figure out why it stay looping in the second 'while' Take a ...
Angel's user avatar
  • 48
1 vote
3 answers
3k views

Win7 System folder contains infinitely looping SYSTEM(!) directory

My Windows 7 Enterprise computer has been crashing fairly frequently recently, so I decided to boot up in safe mode and run the TrendMicro client I have installed. It froze about 10 minutes into the ...
Matt's user avatar
  • 437
1 vote
1 answer
2k views

A site getting 'too many redirects' response on curl but works fine in a browser (chrome)

I have a case when a URL opens fine in a browser but generates 'too many redirects' in curl. As an example below, a request using curl from my WSL2 instance which was taken from a bash script: curl -...
Invisible999's user avatar
1 vote
1 answer
1k views

How to exit from infinite loop in parent terminal?

To test trap command I created the following loop in terminal: while true ; do echo BEGIN ; bash -e ; echo "exit code = $?" ; echo END ; done How to exit this loop and turn back to the parent shell? ...
Tomilov Anatoliy's user avatar
1 vote
1 answer
2k views

How to create auto-reply loop rule in Outlook

My company is still using Outlook 2003. For the second day in a row we have 60,000+ email auto replies in our inbox. Our IT department aren't able to figure out how to stem the tide so my question ...
Emma's user avatar
  • 11
1 vote
1 answer
100 views

I'm having an issue with windows 10 boot times

I'm having a problem with windows 10 boot times. I usually had around 5-7 seconds boot (including bios time) but now it takes around 4 minutes while showing me the windows loading screen with the ...
user2975038's user avatar
1 vote
1 answer
56 views

Windows 8.1 repair loop

I have a gateway with Windows 8.1 and it's stuck in the repair loop I don't have a repair disk and I don't have admin set up, I've tryed all the options it gives and it's still a no go please help
Bryan Brown's user avatar
1 vote
2 answers
82 views

What did I break?

To preface here are my original specs: Intel Core i7-4790K EVGA GeForce GTX 970 ACX 2.0 OC ASRock Z97 Pro4 LGA 1150 motherboard 16 GB DDR3-1333 RAM Today I got a cooler master evo 212 and installed ...
Kek Meme's user avatar
1 vote
1 answer
66 views

Windows 7 hung during installation -- why and what can I do?

I am upgrading from Windows Vista to Windows 7, and the installation process has gone into a loop during the "Expanding Windows Files" step. It is 17% through that step, and just alternates between a ...
Larry Press's user avatar
1 vote
0 answers
1k views

Linux grep command getting stuck in infinite loop while doing recurring search

When trying to search for a pattern in files of current and subfolders, the grep command is stuck in an infinite loop. The following illustrates the problem: /results/log/check_log: if ($f1 eq '...
bprasanna's user avatar
  • 113
1 vote
1 answer
2k views

Seamless audio track / music loop - Auto / Automatic / AI / Script

I always loop audio tracks for my daily vlog. It's like audio track is 3 minutes but I make this audio like 20 minutes. I just find one point near the beginning that also appears near the end. Then ...
Bocki Zong's user avatar
1 vote
1 answer
2k views

Windows 10 Lenovo U410 Reset boot loop

I have a Lenovo U410 that was running slowly so I decided to do a full system reset using the built in application in Windows 10. I started it and left, when I returned there was an error message with ...
Eliya Wing's user avatar
1 vote
1 answer
2k views

Infinite loop of cron jobs with intermediate output from each job

I have a program that outputs stuff to standard output. I am using cron to schedule it which is fine because I am collecting the stuff that it prints outs via email and do some statistical work on ...
user avatar
1 vote
2 answers
5k views

How to run an infinite loop program on startup on a Raspberry Pi without halting boot up

I have a shell script which runs a program in an infinite loop: #!/bin/bash while sudo /home/pi/MyCode; do :; done echo Error with MyCode I want to set up the shell script to run at start-up (which I'...
JRogerC's user avatar
  • 111
0 votes
2 answers
7k views

When installing Windows 2000 on Virtualbox I get a boot loop

How come when installing Windows 2000 guest on VirtualBox I get a boot loop returning me to the setup? I can't break out of it. I've tried to install multiple times. I'm using the version of ...
Evan Carroll's user avatar
  • 9,047
0 votes
1 answer
6k views

How to make a timer and a loop in a batch file?

I need some help completing my .bat file. So what I wanna do is that after the program has started I wanna leave it running for like 1min then I want it to close the program and then run it agian for ...
Qurt's user avatar
  • 3
0 votes
1 answer
13k views

"bootloop of death" in a samsung Phoenix securecore tiano (USB and Uefi and Bootscreen and Setup screen are off!)

Technically it is "almost" a bootloop, since I can boot ubuntu on the hard drive, and I could boot from the DVD (breaking ubuntu grub on the hard drive or trying to chainload to the dvd). Still, it ...
Primate's user avatar
0 votes
1 answer
297 views

Powershell script with infinite loop and sleep - good or bad? [closed]

So I have been trying to run robocopy in silent mode with task scheduler, however the powershell or bat script would always pop up whenever a new instance is launched with task scheduler. I found a ...
TSS's user avatar
  • 1
0 votes
1 answer
1k views

"We couldn't complete the updates" Loop - Impossible to stop Windows updating

Windows 10 I have tried the solution listed here without success: "We couldn’t complete the updates. Undoing changes" endless loop Every 7 days, Windows forces an update which is never ...
kandyman's user avatar
  • 463
0 votes
1 answer
105 views

showing error when use loop in vba

I have a code that's first job is to find "Qty" and "Fty" word in P column. Then it will get the row number of that row. The code was running smoothly. But now when I added a loop ...
Mehedi's user avatar
  • 84
0 votes
1 answer
268 views

Linux - how to break an infinite loop that occurs in a startup script

I've made a shell script and configured it so it'll run at startup. It seems that it causes an infinite loop since it waits for something that hasn't brought up yet. I'm aware of the fact that it's a ...
DanielY's user avatar
  • 101
0 votes
1 answer
15k views

Windows 10 stuck in a loop on Restarting screen everytime, clicking goes all black with cursor

After a Windows 10 update, my computer, every time I restart, will stay in a restarting loop. It will never change. It will stay like this for days, animating. Restarting Screen Oddly, if I ever ...
Jonathan's user avatar
  • 1,772
0 votes
1 answer
211 views

bash .sh script looping instead of ending/exiting

I'm writing my very first bash script. Everytime I've run it to make sure it works, everything works exactly as I'd like it to with the exception of the done command at the very end. Instead it ...
Ev-'s user avatar
  • 479
0 votes
1 answer
1k views

FFMPEG Crop video and insert gif same time

$command = 'ffmpeg -ss 6 -i input.mp4 -ignore_loop 0 -i logo.gif -filter_complex \ "crop=in_w-2*28:in_h-2*25;[0:v][1:v]overlay=15:H-h-25:shortest=1" -codec:v libx264 out.mp4'; i can't manage both gif ...
Halil Coşdu's user avatar
0 votes
2 answers
6k views

How do I stop a CHKDSK infinite loop?

I started up my Windows XP box last weekend after it had been off for quiet a while, at least a few months. At first, when I started it up I received a blue screen with no message, and it restarted. I ...
NobleUplift's user avatar
  • 1,605
0 votes
1 answer
977 views

Syntax error trying to run batch files in loop

I want to run these 3 .bat files in loop. Tried these 2 codes and got invalid syntax error from both @echo off :loop start "c:\1.bat" && "c:\2.bat" && "c:\3....
dawnslayer's user avatar
0 votes
1 answer
566 views

Acer aspire m5 stuck in a restart loop that turns on and off in 5 seconds without any display

Hello my acer aspire m5 is stuck in a restart loop. Each time i switch it on it starts for 2 seconds then switsches off and on again. When it switches on you can feel the fan and drive running then ...
James Kibunja's user avatar
0 votes
0 answers
147 views

MacBook Pro - Why does the keyboard/trackpad being plugged in cause reboot loop?

I came here because I wasn't sure if this is a question for StackOverflow. My friend's MacBook Pro was/is stuck in an infinite reboot loop. We would see the apple logo and the loading bar for a good ...
KuyaDanny's user avatar
0 votes
0 answers
255 views

Win 7 BSOD STOP: 0x0000007B

Stuck in a bootloop. Can't enter Safe-mode. The error I'm getting is a fraction of a second BSOD that I had to record with a phone and play back frame by frame to read, which is... STOP: 0x0000007B (...
JJrussel's user avatar
  • 119
0 votes
0 answers
406 views

How can I permenantally disable one of my integrated graphic cards (ATI)?

In windows, I would go to Device Manager and disable it. In Ubuntu (Linux), I have no idea. I want to disable it because it's causing my computer to freeze a few minutes after booting into Linux Live ...
JJrussel's user avatar
  • 119
0 votes
0 answers
600 views

MSI GT60 laptop stuck in endless BIOS Setup loop

My MSI GT60 gaming laptop is doing something very weird. I turned it off to relocate it on top of a 25U server rack and when I turned it on the Aptio setup screen appeared. No matter what I do, it ...
Juan Jimenez's user avatar
0 votes
0 answers
62 views

Boot loop after Avast reinstall

After creating a Linux bootable USB, I noticed that at start up I got an error message from avastui.exe "The application was unable to start correctly (0xc0000005) Click Ok to close the ...
JJrussel's user avatar
  • 119