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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-01-2012, 02:18 PM
|
#1
|
LQ Newbie
Registered: May 2012
Posts: 2
Rep: 
|
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.
|
|
|
05-01-2012, 02:40 PM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,594
|
Quote:
Originally Posted by spider69
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.
|
|
|
05-01-2012, 03:01 PM
|
#3
|
LQ Newbie
Registered: May 2012
Posts: 2
Original Poster
Rep: 
|
Quote:
Originally Posted by TB0ne
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.
|
|
|
05-01-2012, 04:17 PM
|
#4
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,594
|
Quote:
Originally Posted by spider69
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
|
|
|
All times are GMT -5. The time now is 06:46 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|