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

  • SEARCH
  • Home
  • 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 8586787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T22:23:54+00:00 2026-06-11T22:23:54+00:00

We have a fairly complex system that runs multiple ANT builds simultaneously on a

  • 0

We have a fairly complex system that runs multiple ANT builds simultaneously on a number of *nix PCs. We think that there are times when the disks fill up just before the clean up scripts run and/or the load on the PC is sufficiently high to cause issues when connecting to external servers (signing servers etc).

What we want is every 2 minutes to log the output of something like this to a file :

df . --direct -P --block-size=1m | tail -n 1 | awk {'printf("Free %dMb (%d%% Full)\t", $4, $5)'}; uptime

Is this possible in ANT (or ANT-contrib) or will I have to execute an external script?

My best solution so far is:

<target name="my_target">
    <parallel>
        <exec ... pc_status_every_2_mins_logger.sh />
        <sequential>
             ... rest of very large ANT script ...
        </sequential>
    </parallel>
</target>

I think this is rather clumsy and hoped that ant might have a much cleaner way to deal with this kind of issue.

  • 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-06-11T22:23:55+00:00Added an answer on June 11, 2026 at 10:23 pm

    You may try the other way around – means not checking how much space but checking if there is enough space – and use the hasfreespace condition (since Ant 1.7.0)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a fairly complex view that has multiple forms, lots of validations on
I have a fairly complex system that I want to test using python. My
I have a fairly complex program that runs into strange behavior when build with
I have a fairly complex html form enhanced via jquery. It has multiple tabs,
I have a web application I've developed that has a fairly complex save routine.
I have a web page that I use to update a fairly complex data
I have a fairly complex user drawn control that is double buffered. Works very
I have a fairly complex web app that was built (by a contractor) to
I have a fairly complex content management system I've written in PHP, which has
I have some fairly complex requirements for a SOLR search that I need to

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.