LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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, 02: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, 02:40 PM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
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, 03: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, 04:17 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
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



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 08:41 AM
ftp commands in shell script vinaytp Linux - Newbie 3 05-26-2009 10:59 AM
Need Ftp Shell script vishal_titre Programming 3 02-03-2009 03:03 AM
ftp through shell script HSN Programming 24 02-23-2007 03:18 PM
shell script for ftp javier_ccs Programming 7 07-18-2006 11:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:56 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
Open Source Consulting | Domain Registration