mrreds
6th August 2009, 19:13
Hi everyone!

I have a Job that is creating an output file. I'm trying to send it by email but, Baan is not attaching the file because it is a large file. Baan is specifying a local FTP path in order to pick the file up.

Is there a way to make this large attachment possible? Any parameter?

Or, could you share with me a script in order to FTP the file? Or send it by email using a script?

Thank you!

Regards,
Eduardo.

mark_h
6th August 2009, 19:48
Just search on email, uuencode or ftp. There are plenty of threads that cover options like this.

abhijeetp
6th August 2009, 20:52
Hi,

I am using this script to FTP my files created by jobs. Please change the variables to suit your installation. Hope it helps.

FILEPATH=/baan/bse/tmp
FTPSITE=ftp.server.com
FTPUSER=abc
FTPPASSW=abcd
export FTPSITE FTPUSER FTPPASSW FTPDIR FILEPATH
cd ${FILEPATH}
ftp -n << %
open ${FTPSITE}
user ${FTPUSER} ${FTPPASSW}
cr off
tenex
binary
put filename1
put filename2
quit
%

BaanInOhio
6th August 2009, 22:18
You can do the FTP in a single command line using the CURL utility if you're using UNIX. Much cleaner than running a script containing FTP commands from the Baan 'run.prog' command. You can dynamically build the 'curl' command in a string and use it in the 'run.prog' command. See more at http://curl.haxx.se/docs/manpage.html