The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Script required to get a required info from file. Pls. help me. ntgobinath Shell Programming and Scripting 2 05-31-2008 05:34 AM
Help required on awk meetavin Shell Programming and Scripting 3 04-18-2008 06:47 AM
SSL help required binums HP-UX 0 05-03-2006 11:03 PM
Help required on DBX Sumanth SUN Solaris 1 07-29-2004 06:54 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 04-02-2008
Registered User
 

Join Date: Jul 2005
Posts: 35
FTP help required

Hi All,

I have to FTP files to the remote system,but before putting the file into the destination directory of remote i need to check about the space availability.
If the space available is greater than 90% then only i need to put the file.
Do we have any ftp command or option which check the space and the ftp or pls suggest if any other way is there.
Reply With Quote
Forum Sponsor
  #2  
Old 04-02-2008
Registered User
 

Join Date: Mar 2008
Location: Toronto, Canada
Posts: 66
Before doing the FTP in your script, you have to TELNET/SSH/REXEC there and run "df -k remote-directory" and examine the 4th column of the output (which is "percentage used") and then do the FTP, if the condition is met.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 05:22 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0