Get returnCode of Mload from Shell Script

General
Enthusiast

Get returnCode of Mload from Shell Script

Hello All - I have a shell script which reads all files [a given pattern] in a directory and then invokes mload like below to load these files.

returnCode=`mload < PostCampaigns.mload`

 echo $returnCode

Now i see that its not working...i mean no value in returnCode. Can you please help me get this straight - How can i get the rerurncode of mload in a shell script.

Thanks,

Vinay

2 REPLIES
Enthusiast

Re: Get returnCode of Mload from Shell Script

BTW - Mload is getting invoked fine and the load is also working fine...only the returncode issue remains.

Junior Supporter

Re: Get returnCode of Mload from Shell Script

Vinay:


mload < PostCampaigns.mload


echo $?

should show the errorcode.

HTH.

Cheers.

Carlos.