![]() |
Problem with while loop that never stops I have a shell file with me in which I have a "while" loop that never stops: I then have a file ping.txt with 4 ip in 4 lines and when I do a echo $NBS_LINE I have 4 lines Code: #!/bin/bash |
Re: Problem with while loop that never stops Why not you use $ i <$ NBR_LINE as a condition? Because there I even understand why your program works since $ i! = $ NBS_LINE the first execution |
Re: Problem with while loop that never stops If I shall be as you say it makes me: ./script_ping.sh: line 11: 4: No such file or directory type I do not know all of the report. |
Re: Problem with while loop that never stops Sorry, you're absolutely right, I spoke too soon So here is the structure that I think you will need to use Code: $i = 1; |
All times are GMT +5.5. The time now is 07:48 PM. |