1752802 Members
5923 Online
108789 Solutions
New Discussion юеВ

Re: FTP

 
SOLVED
Go to solution
Kyle D. Harris
Regular Advisor

FTP

Hello- I have a file on a server i want to email. I am on a local computer. Can somebody break it down barney style how to get that file from the server to my local machine? Thanks!

Kyle
2 REPLIES 2
Steven E. Protter
Exalted Contributor
Solution

Re: FTP

The attached script will do an email with attachments, binary or ascii.

You may have to make some minor adjustments to get it to work with Linux.

mailx on HP is mail on Linux. etc

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Huc_1
Honored Contributor

Re: FTP

Hello

I have modify and tested on Linux SEP script you will find this attached here.

I have modified first line to /bin/bash

I have also modified one of the valid user to "tutu" this is a temporary test user on my local linux laptop ... change this to your need's or use root

I have also given the full path to the sendmail as if you run this on a "normal" user you would not have /usr/sbin in your path This is not a problem if you run it as root

If you find the above fill some of your needs please give the point to SEP ... and perhaps a little less for my effords.

Jean-Pierre

P.S. I have enjoyed your code SEP and would give you 10... regards, Jean-Pierre
Smile I will feel the difference