Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7552559
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:47:14+00:00 2026-05-30T10:47:14+00:00

I got my computer today to do work on a bashscript called MF.sh ..

  • 0

I got my computer today to do work on a bashscript called MF.sh..

wget somefile1
wget somefile2
wget somefile3

Ok. But somefiles familly like to change every minute, so I wrote this amazing piece of code to repeat the work every minute:

sleep 45
./MF.sh

I ended up killing zilllion process in htop manually.

What is the best practice here? What type of loop to use? Where to break? Using “i” like control variable is just a convention? How to use minutes time to control this?

EDIT (expanding question instead of answering it)

I tryed this

h=$(date +%R) 
for ($(date +%R) = $h)

     then

to catch when minute changes, but failed.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T10:47:16+00:00Added an answer on May 30, 2026 at 10:47 am

    while loops while its command is true. true is always true.

    while true
    do ...
       ...
      if ...
      then
        break
      fi
       ...
    done
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got mssql 2005 running on my personal computer with a database I'd like
A webapp called StatSheet got funded today (August 4th, 2010) http://techcrunch.com/2010/08/04/former-crunchies-finalist-statsheet-recieves-1-3-million-in-series-a/ They are doing
I got a String like: Hello.Test.Trash or Hello.Test.Computer.Trash or Haha.Yeah.Space.Car.Trash I want to be
I got msysgit installed at my computer. And I configured it to work with
I got field values like this computer-123-553 computer compputer-233 computer-123-123 computer-900 How to get
I'm a computer engineer student and i've got a basically simple assignment but i'd
I've got a Github account setup on one computer. I would like to also
I've got a decent computer. ( something with dual-core in the name and a
I got a SVN repository copied onto my computer using svnsync. Now when I
I've got two hard disks in my computer, and have installed Solaris 10u8 on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.