Search : in
By :

Ftp, archive and email in shell script

Last answer on Aug 3, 2009 9:53:30 pm BST Lenora2009, on Jul 10, 2009 10:47:24 pm BST 
 Report this message to moderators

Hello,
I found the forum’s information very helpful and informative. I am relatively new to UNIX programming. I am researching how to write a UNIX shell script to ftp all files from specific host folder to a client server. Also need to archive all transferred files, send a message (email) if any file was not transferred successfully and save (email) a log after the shell script execution. Delete all files from the host folder (that were transferred and archived successfully).
Could you please help me? Where can find additional information or script’s examples?
Thank you in advance

Configuration: Windows XP Internet Explorer 7.0

Best answers for « ftp, archive and email in shell script » in :
Shell script for telnet and run commands Show Shell script for telnet and run commands Issue Solution Note Issue I have made a shell script which can telnet automatically and run commands on the other machine and end the telnet session without any interact from the user, only he...
Execute a script a startup and shutdown ShowExecute a script a startup and shutdown The trick works Windows XP, Vista and 7, but the method varies depending on your edition of Windows. For professional or full editions Start the policy editor of the local group: Start Menu> Run> Type...
Replacing Variables in Bash/shell ShowReplacing Variables in Bash/shell Intro: Expression:Defininition Intro: First of all make sure that you the variable is defined before replacing it, or in other cases determine that it is not empty, and to initialize with a default...
Changing password via a script ShowChanging password via a script Method 1: passwd Method 2: chpasswd Method 1: passwd Conventionally the command use to change password on Linux based system is passwd , the option related to this command is –stdin ,an this is all...
Download MailBase Email Archiver ShowMailBase is an email archiving program that runs in the background and keeps a copy of all incoming and outgoing emails without interfering with your normal email client. Advantage It allows business to create an archive of incoming and outgoing...
Linux - The shell ShowIntroduction to the shell The command interpreter is the interface between the user and the operating system, hence the name "shell". The shell therefore acts as an intermediary between the operating system and the user thanks to command lines...
File formats and extensions ShowWhat is a MIME type? The MIME type (Multipurpose Internet Mail Extensions) is a standard that was proposed by the Bell Communications laboratories in 1991 to broaden the possibilities of email, involving insertion of documents (images, sounds and...
Using FTP commands ShowThe FTP protocol FTP (File Transfer Protocol) is a protocol — meaning a standard language that lets two machines communicate — used so that computers of different types (or with different operating systems) can transfer files over a...

1

 Tom6, on Aug 3, 2009 9:53:30 pm BST

Hi :)

I had a quick hunt around and found this
http://tldp.org/LDP/abs/html/

but really it might be better to use this site
http://distrowatch.com
to find your specific version of linux and their page should help you navigate to their user-forum

Also this is a good site for general linux enquiries
http://www.linuxquestions.org
as it is a lot more focussed on linux generally

Good luck and regards from
Tom :)

Reply to Tom6