The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Special Forums > UNIX and Linux Applications
Google UNIX.COM


UNIX and Linux Applications Questions involving software not covered by other forum go here. This includes Databases and Middleware.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Append using awk Raynon Shell Programming and Scripting 4 11-04-2007 02:19 AM
ftp append brdholman UNIX for Dummies Questions & Answers 1 10-31-2007 06:02 AM
append to fle using sed shweta_d Shell Programming and Scripting 2 06-12-2007 11:57 PM
perl: simple question on string append the_learner Shell Programming and Scripting 1 05-14-2007 02:09 PM
append question mr_evans2u UNIX for Dummies Questions & Answers 1 07-23-2006 05:35 AM

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

Join Date: Jul 2006
Posts: 12
Stumble this Post!
ftp append question

Quick question.

Will append act like 'put' if the file I'm telling it to append to doesn't exist?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 12-04-2007
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,160
Stumble this Post!
from "man ftp" :
Quote:
append local-file [remote-file]
Append a local file to a file on the remote machine. If remote-
file is left unspecified, the local file name is used in naming
the remote file after being altered by any ntrans or nmap set-
ting. File transfer uses the current settings for type, format,
mode, and structure.
Note : this "append" command may differ in your version of unix, so check the man page first.
Reply With Quote
  #3 (permalink)  
Old 12-04-2007
Registered User
 

Join Date: Jul 2006
Posts: 12
Stumble this Post!
I looked at the man page but it didn't really answer my question.

So I did a quick test and the answer is yes - it does.

If the file does not exist append will put it there, just as if you had said put.

Should have done that in the first place, but I was hoping to be lazy and that one of you would know off the top of your guru-smart heads.

Thanks!
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:50 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