Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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