Jython script to execute OS Command based on OS
Hi,
Could anyone help me in writing Jython script in ODI to execute a OS command (create a file with list of .csv files available in specified directory) based on the OS on which code is running?
We have DEV and UAT are in Windows environment and Training is in Linux environment.
I tried following http://odiexperts.com/jython-os-bug-in-windows-7/ but I am getting errors like, SyntaxError: ("no viable alternative at character '\x93'", ('<string>', 3, 13, 'os.command(r \x93 copy /r source_path dest_path\x94) \n'))
Please help me and its urgent.
Thanks
MT