send email with attachment from Data services script

I have captured the bad reords using over flow file and i want to send the bad file as an attachment through email , the bad file is existing in unix job server. So , i am writing the mailx unix command using EXEC fuction from DS script , but working, may be syntax issue. please help how to call unix command to send mail from EXEC ();

Also I tried mail_to fucntion to send the error log and trace but it is not containing all the data in the mail .


kgecdeep (BOB member since 2012-07-25)

Any suggestion how to call unix mailx command from DS script using EXEC()


kgecdeep (BOB member since 2012-07-25)

you should be able to use the mutt command line mail client, if that could be made available for you on the job server.


ErikR :new_zealand: (BOB member since 2007-01-10)