The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
file moving based on file content melvyn.cochrane Shell Programming and Scripting 12 02-15-2008 02:10 AM
Automated file transfer damienjine UNIX and Linux Applications 1 01-18-2008 04:42 AM
Parse the .txt file for folder name and FTP to the corrsponding folder. MeganP Shell Programming and Scripting 3 07-03-2007 10:54 AM
moving a file? Holistic UNIX for Dummies Questions & Answers 1 02-20-2003 03:47 PM
Suppres error message when moving files from empty source folder Steven Shell Programming and Scripting 2 11-19-2001 09:25 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-05-2007
Registered User
 

Join Date: Oct 2007
Posts: 23
Stumble this Post!
moving a file to a new folder and automated ftp

how to move a file to a different folder after an automated FTP .
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 10-05-2007
Cameron's Avatar
Registered User
 

Join Date: Nov 2001
Location: Brisbane, Australia
Posts: 486
Stumble this Post!
You need to look at ' man mv '.

mv [srce-path][srce-file] [dest-path][dest-file]

Briefly in regards to 'after an automated FTP' ... you'll need to create a loop that checks for the existance of the/a file [srce-file] in the [srce-path]. If it doesn't exist, then sleep for a few minutes, if found, perform your move.

Hope that's of some help to you.

Cheers,
Cameron

Last edited by Cameron; 10-05-2007 at 07:28 AM. Reason: additions ...
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:37 PM.


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

Content Relevant URLs by vBSEO 3.2.0