LinuxQuestions.org
Visit Jeremy's Blog.
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 05-01-2012, 03:18 PM   #1
spider69
LQ Newbie
 
Registered: May 2012
Posts: 2

Rep: Reputation: Disabled
Shell FTP Script


Hello All:

I am looking for shell FTP script to upload files and remove files. Here is the workflow I am looking at.

1) Delete the files on FTP server in backup folder
2) Upload the files from web server to FTP
3) Delete files from web server

Please help me in this regard,

thanks
Spider.
 
Old 05-01-2012, 03:40 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,961

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by spider69 View Post
Hello All:
I am looking for shell FTP script to upload files and remove files. Here is the workflow I am looking at.

1) Delete the files on FTP server in backup folder
2) Upload the files from web server to FTP
3) Delete files from web server
We'll be glad to help...post what you've written so far, and where you're stuck. But we are not going to write your script(s) for you...there are thousands of example FTP scripts you can easily find with a Google search.

However, what you're looking for would be much better done with SSH/SCP...not only is it more secure, but more easily scripted, since (once you exchange your key information), you don't need a password to transfer files, or perform operations on the remote system.
 
Old 05-01-2012, 04:01 PM   #3
spider69
LQ Newbie
 
Registered: May 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
We'll be glad to help...post what you've written so far, and where you're stuck. But we are not going to write your script(s) for you...there are thousands of example FTP scripts you can easily find with a Google search.

However, what you're looking for would be much better done with SSH/SCP...not only is it more secure, but more easily scripted, since (once you exchange your key information), you don't need a password to transfer files, or perform operations on the remote system.

Can you post one link? I am not a linux guru, even I find links I am not sure if it will work for me?

Please.
 
Old 05-01-2012, 05:17 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,961

Rep: Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693Reputation: 3693
Quote:
Originally Posted by spider69 View Post
Can you post one link? I am not a linux guru, even I find links I am not sure if it will work for me?
Please.
Really?? Typing "example linux ftp shell script" into Google, pulls up 1,170,000 hits. The very first hit has a sample script, as do most of the entire first page of results. Did you even TRY to look this up?

http://www.stratigery.com/scripting.ftp.html
 
  


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
Automate Shell Script For FTP Ashish Sood Linux - General 5 01-22-2012 09:41 AM
ftp commands in shell script vinaytp Linux - Newbie 3 05-26-2009 11:59 AM
Need Ftp Shell script vishal_titre Programming 3 02-03-2009 04:03 AM
ftp through shell script HSN Programming 24 02-23-2007 04:18 PM
shell script for ftp javier_ccs Programming 7 07-19-2006 12:02 AM


All times are GMT -5. The time now is 06:35 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