How to create automatic ftp scripts in bash - LUX.ET.UMBRA
94

How to create automatic ftp scripts in bash

| | Comments (0) | TrackBacks (0)

You can do this in any operating system that allows you to do bash shell scripting, but if you know a little about shell scripting, then all you need to know is that you can do:

ftp -i << **

After you put this in the script, this will allow you to login and password to whatever is set in your .netrc. If you don't have one, then you should set it before starting off a script like this.

All the commands after this line will be your usual ftp commands. When you're done, then do a:

bye

**

Everything outside of this line will be back on your bash scripting syntax.

0 TrackBacks

Listed below are links to blogs that reference this entry: How to create automatic ftp scripts in bash.

TrackBack URL for this entry: http://life.firelace.com/mt-cgi/mt-tb.fcgi/7581

Leave a comment

 

About this Entry

This page contains a single entry by darkmoon published on May 29, 2008 12:01 AM.

Music Review: Girugamesh - Girugamesh was the previous entry in this blog.

Tracing hung processes through the ppid is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

 

 

 

 

Powered by Movable Type 4.13