27.08.2015 Views

Advanced Bash−Scripting Guide

Advanced Bash-Scripting Guide - Nicku.org

Advanced Bash-Scripting Guide - Nicku.org

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Advanced</strong> <strong>Bash−Scripting</strong> <strong>Guide</strong><br />

Filename=`basename $1`<br />

# Strips pathname out of file name.<br />

Server="metalab.unc.edu"<br />

Directory="/incoming/Linux"<br />

# These need not be hard−coded into script,<br />

# but may instead be changed to command line argument.<br />

Password="your.e−mail.address"<br />

# Change above to suit.<br />

ftp −n $Server

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!