LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-12-2014, 11:54 AM   #1
edimanic
LQ Newbie
 
Registered: Jan 2014
Posts: 10

Rep: Reputation: Disabled
SFTP append command


Hello All ,

i am trying to convert one script to SFTP from FTP .
in the FTP script there is command append is used as below:
append dirA\inpFile dirB\outFile

i can see append command is not valid in SFTP .
kindly let me know equivalent valid SFTP command to be use in this case ...
thanks.....
 
Old 01-12-2014, 05:29 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,785

Rep: Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159Reputation: 4159
Quote:
Originally Posted by edimanic View Post
Hello All ,
i am trying to convert one script to SFTP from FTP . in the FTP script there is command append is used as below:
append dirA\inpFile dirB\outFile

i can see append command is not valid in SFTP . kindly let me know equivalent valid SFTP command to be use in this case ...
There isn't, since (as you said), append isn't supported in SFTP. You can use SSH to append to a file, but not via SFTP:
Code:
cat file | ssh user@host "cat >> /path/to/remote-file"
Since you don't post your full script, tell us what you're trying to accomplish, what version/distro of Linux, or give any details, the best we can tell you is to read the man pages.
 
3 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to append a file using sed command radhikamody Linux - Newbie 1 02-27-2012 01:54 AM
Command to Append two waveFiles...? razmca Linux - General 3 07-14-2009 01:38 AM
[SOLVED] append command output to file by giving command in terminal sumeet inani Linux - Newbie 4 07-03-2009 10:36 AM
Automatically append another piped command to issued command in bash amateen Programming 1 05-07-2009 06:36 AM
How do I use sftp to upload my web site? (no sftp tar command) johnMG Linux - Networking 6 06-21-2005 09:14 PM


All times are GMT -5. The time now is 09:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration