@mtucker, yes you are right, it works in karma. my apologies. since your example worked on the viewport, when I did not see my viewport showing the result, I just assumed I did something wrong.
However, I am trying to get the setup running in REDSHIFT, and still having problem.
@Heilieif, thank you for the comment. I have downloaded the OSL, and have it setup. the setup seems to be working (I can at least see the default texture showing up from "RS string user date". however, its not reading the .png files I have setup as an attribute.
NOTE I had to replace .rat files to .png files to get them rendering in REDSHIFT.
also attached the HIP file with redshift setting.