can you look for the latest version of the files based on the timestamp in the nsh script?
why does the nsh script need to access these files, what is it doing w/ them ?
Bill, the NSH script job executes email command (attaching all the files created from deploy job). These files are basically weblogic snapshot and comparison result files (created using BMA cli - rundeliver).
I couldn't make the email command work from within deploy job external command, hence thought of using a batch job for executing both these separate jobs.
Can I use property dictionary to assign and read values across these jobs, so that I assign the file names from deploy job and read that value in NSH script job
Meanwhile I will check reading recent files idea, but only issue is that sometimes the snapshot comparison report files (html format) may not be overwritten and in that case I will not understand to attach this file and since the email component is working from NSH server, we are not allowed to delete these files from temporary (staging) location.
1 of 1 people found this helpful
you could use the property dictionary - but you'd have to set the values w/ another job before these two start running.
will you always be getting the latest logs? if that's the case, can't you just use script logic to do that ?
An external command works similar as if you work in a native shell. So, if you are able to run the email command from a native shell on that target wherever your files are, external command should also work.
However, keep in mind that sometimes you have to run .profile for the user's environment variables to be initialized.
May be that is the reason the email is not working from the external command.
Thanks Bill, we are modifying our NSH script now to read the recent files from a temp folder and then email those files, once emailed these will be cleared from temp folder. The external command from BL Deploy job now will always overwrite/create files in temp folder
Naveen we are using blcli Email command which works only from the NSH proxy and hence the external command for the BL Deploy job is not able to execute this command
i'm pretty sure naveen meant running the os's 'mail' command, not any blcli, in the external command of the blpackage.
oh no, none of our servers are actually enabled for these utilities...