On Mon, Jan 06, 2003 at 01:51:23PM +0100, Jorge Luis Hernández Valdivia wrote: > --- William Warren <[EMAIL PROTECTED]> > escribió: > On Sat, Jan 04, 2003 at 09:05:21PM +0100, > Jorge Luis Hernández Valdivia wrote: > > > > > > The answer for Bill's questions:
[snip] > > > > 2. Do you want to send the file *in* the email > > > > body, or as an attachment, or does it matter? > > > > > it doesn't matter really, however I would prefer > > > to send it as an attacment. > > > > You can do that by concatenating a "standard" header > > with the file, but you'll have to change the file > > into a MIME format before sending. > > > > Read up on MIME, and the utilities that convert > > to/from Base64. > > How can I cancatenate a standard header, what do you > mean? Use any standard, MIME-Compliant mail agent to create an email with the attachment you want to send. Then, strip the headers down to a bare minimum, and you'll be able to cat them with the (encoded) attachment you want to send. > > > > 3. What kind of file do you want to send? Is it > > > > simple ASCII data, or is it a binary/ > > > > executable/image file? > > > > > > > > > > The files I want to send are compressed files > > > (*.tgz) > > > > Please tell us which OS the machine(s) on LAN0 and > > LAN1 are running. In other words, would the mail > > be sent from a Linux box? > > Lan 0: Windows NT/2000 > Lan 1: Windows 9x/NT/2000/xp > The PC with the firewall is the only one which works > with linux. Well, that limits your options, since Linux can't pull email on demand. However, since .tgz is an unusual format for M$ software, please confirm that the file is going to come from a windoze box. Assuming the answer is "yes", there are two possibilities: 1. Open a share on the windoze box, read-only and password protected, and use SMBCLIENT to pull the file from the windoze machine into the server and send it from there. 2. Write a script for the windows scheduler and use it to push the file into a samba share on the server. The cron job, file encoding, and concatenating the email headers with the file will be left as an exercise for the reader. HTH. Bill -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list