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 6809855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:08:08+00:00 2026-05-26T20:08:08+00:00

I am running a build script in which three executable files (100mb each) are

  • 0

I am running a build script in which three executable files (100mb each) are uploaded to an FTP server.

The first upload can fail due to an FTP server space problem so our build process fails. This means I have to free some space from the server and run the build script again which is waste of time. I’d like to check the FTP size before uploading the exe to make sure space is there. If sufficient space is there then upload otherwise prompt user for input.

How can I check the FTP size in an ant script.

  • 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-26T20:08:09+00:00Added an answer on May 26, 2026 at 8:08 pm

    As discussed in the comments, you can write a shell script (assuming the FTP server is a linux box) along the lines of:

    #!/bin/bash
    
    FTPDIR="/path/to/ftp/dir"
    echo `df -kl / | tail | awk '{print $4}'` > ${FTPDIR}/free_space.txt
    

    Make sure you replace path/to/ftp/dir with the actual path to the directory you will be downloading from.

    Add that script to the server’s crontab (crontab -e) and let it run every hour (0 * * * *) or so. You can download the free_space.txt file which contains the hourly updated free space of the FTP server.

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

Sidebar

Related Questions

I'm running a python script on a shared hosting server which until this morning
We were running Tarantino in a Nant build script but we're getting some new
I've got build server running CruiseControl.NET and recently it started throwing this error on
I have a build server running CruiseControl.NET. It works well for the 7 projects
I have a CruiseControl build server running a large number of projects. On one
Currently we are running an application build in VB6,ASP,Commerce Server2000 and Sql Server 2000.
Ive got CC.Net and NAnt (and MSBuild) running on a new VM-based build server
I have a Hudson build script which calls the SysInternals PsExec utility. Normally, when
We're using CruiseControl.NET which invokes an MSBuild script. While debugging the build script, we
I've been exploring different strategies for running integration tests within some Nant build scripts.

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.