When I run unix2dos from crontab in suse linux it fails to rename the temporary file created for the conversion.
unix2dos -ascii -n /opt/oracle/admin/scripts/logs/test_file1.lst /opt/oracle/admin/scripts/logs/test_file2.lst
The output shows the following:
unix2dos: converting file /opt/oracle/admin/scripts/logs/test_file1.lst to file /opt/oracle/admin/scripts/logs/test_file2.lst in DOS format ...
unix2dos: problems renaming './u2dtmpqRR8kv' to '/opt/oracle/admin/scripts/logs/test_file2.lst'
output file remains in './u2dtmpqRR8kv'
unix2dos: problems converting file /opt/oracle/admin/scripts/logs/test_file1.lst to file /opt/oracle/admin/scripts/logs/test_file2.lst
The temporary file './u2dtmpqRR8kv' ends up in the home directory.
I think this must be a permissions or possibly a env variable problem as this script works on the other suse linux servers.
I have done some testing to try and pinpoint the problem but am getting frustrated now.
any ideas please?