Questions tagged [until-loop]

59 questions
1
vote
1 answer

Azure Data Factory Until loop slow to end/terminate

We have an until loop in a ADFv2 pipeline. The time it takes to stop/terminate once the expression condition is met seems to corrolate between the length of time the until loop takes to completes its activities. This particular until loop performs…
Geezer
  • 513
  • 5
  • 17
1
vote
1 answer

powershell until loop not working as intended

the desired output would be to repeat the question until either "Y" or "N" is selected. $msg = 'Does this Share contain Sensitive Data? [Y/N]' do { $response = Read-Host -Prompt $msg if ($response -eq 'n') { $sdata = "No" } if…
Rich
  • 47
  • 5
1
vote
2 answers

Ansible start a process and wait check until telnet condition is successful

I trigger multiple Tomcat startup scripts and then need to check if all process listens on their specific port across multiple hosts in the quickest time possible. For the test case, I m writing 3 scripts that run on a single host and listen on…
Ashar
  • 2,942
  • 10
  • 58
  • 122
1
vote
1 answer

Count Virtual Desktops then delete more than 2

Preface: I have not been formally trained on how to code. I have kind of winged it and done simple thing like registry entries via powershell. I have a small script I am trying to run that will test to see how many Virtual Desktops I have running…
Twiggo
  • 15
  • 4
1
vote
3 answers

bash script error until [1: command not found

Can someone solve my headache with the following code. I want to write a bash script that will create a table that contain interval of time according to informations input by a user and display table. this is a part of another program but I got…
Elynho
  • 21
  • 2
1
vote
2 answers

Do until with a defined function

I am trying to learn some VBA for my job. Unfortunately, i don't have the time to follow a course so i hope to learn the logic by executing some tasks. I have the StockOH in one cell (D2) and i want to know how many days of sales i can cover. The…
Antonio
  • 35
  • 3
1
vote
1 answer

Azure Logic App API Pagination using Until condition

Wondering if you could help with this problem please. I am ingesting data from an API using Azure logic App. I have managed to set up everything else but struggling with pagination in Until condition.Logic App continues to ingest/consume data and…
user3482527
  • 227
  • 1
  • 2
  • 22
1
vote
2 answers

Ruby while loop keeps repeating regardless of input

I wrote a simple guess the number game. But it keeps looping even when I input the correct number. Please help, thanks! puts "Pick a number between 0 - 1000." user_guess = gets.chomp.to_i my_num = rand(831) guess_count = 0 until user_guess ==…
bulk_jedi
  • 11
  • 1
1
vote
1 answer

Ansible until loop with regex in conditional statement

I need to check command stdout with a regex pattern in until loop. When I using regex_search to display debug msg all works fine: - name: Checking if node is ready shell: "kubectl --kubeconfig {{kubeconf}} get nodes" register:…
lexadler
  • 245
  • 5
  • 13
1
vote
1 answer

Ansible "until" response from Jira API

Im trying to schedule an ansible playbook to re-index Jira, Id also like our dev to be able to kick this off ad-hoc is needed which they would be able to do via AWX, I am able to start a re-index but would like a notification when the re-index is…
WG-Irl
  • 13
  • 1
  • 4
1
vote
2 answers

Until loop not terminating or holding incremented variable's value

Why is this loop not breaking(ending due to if statement) or using the newly incremented value of $c variable? Tried c=expr $c + 1 with and without " double quote. export c=1; ssh auser@someserver "until [[ 1 -eq 2 ]]; do echo \"Value of 'c' ==…
AKS
  • 16,482
  • 43
  • 166
  • 258
0
votes
1 answer

i tried searching repeat until loops and i only found repeat statement until condition

how do I make a successful repeat and until loop? what did i do wrong in my code? I did repeat move forward() until(tick{2} ) I tried repeat move forward() until{2} ) here's the actual result: the character moved sideways only 1 space once not…
0
votes
1 answer

How to have an ansible role repeat until a condition is met

I have an Ansible role that i call to return the following information on a network switch "networkSwitch": [ { "switchName": "some_switch_name_01", "uplinks": [ "physicalNic-nic0", …
piercjs
  • 133
  • 8
0
votes
2 answers

How to handle asynchronous API response in scala

I have an API that I need to query in scala. API returns a code that would be equal to 1 when results are ready. I thought about an until loop to handle as the following: var code= -1 while(code!=1){ var response = parse(Http(URL).asString.body) …
Haha
  • 973
  • 16
  • 43
0
votes
1 answer

why using space it return false?

I have to solve this problem. I'm new in bash scripting. This is my problem: #!/bin/bash echo "In quale mese e anno è nato Albert Einstein?" read risposta1 risposta2 shopt -s nocasematch until [[ $risposta1 = marzo ]] || [[ $risposta2 = 1879…
Giammarco
  • 1
  • 2