how is that not working when you use it in a bldeploy job ? do you get an error ?
and your nsh script job and bldeploy goto the same target ?
how is it being run in the nsh job ? type 1 type 2 ? etc...
I do not get any error. The same NSH script was working fine on 83SP2 on OEL5 Linux server. Now we have migrated to 87P3 on OEL6 and this is not working.
Its type 2 NSH. yes the nsh script job and bldeploy goto the same target.
so what's not working ?
you said: "I tried the below method and it does work from NSH prompt from server but failed to work form NSH BL-Package."
so you ran:
echo "MESSAGE BODY" | mailx -s "SUBJECT" -a email_report.csv <email_ID>
and that works from nsh directly ? this is on a server w/ nsh and mailx installed and a mail relay configured ? and you got an email w/ litterally "MESSAGE BODY" in it and the email_report.csv attached ? where does the uuencode fit into this ?
and then you have a type 2 script that runs what ? are you nexec'ing the mailx command against some target or you have mailx installed on the server running the job ?
and then via a blpackage - what is being run exactly ? and the same works from the command line on the oel6 target ?
it seems you have changed multiple things here - upgraded bsa, are using a new server as the job target and the OS of the target is different. so any one of those could cause this not to work...
I was able to fix the issue. I copied the file to the file server location and send the email from there.
So the problem was you didn’t have a file in the expected location ?