unixoas

How to run Unix command from Oracle Forms


OS: UNIX Solaries, Oracle Application Server 10g

To run shell script from Oracle Forms, I used the following host('/bin/bash /u01/compile.sh') and it works well

Now, I need to run unix command something like

host('mv form1.fmx FORM1.FMX') but it's not working

I tried to append the command mv form1.fmx FORM1.FMX' to the compile.sh shell script but also it's not working although the rest lines of the shell script is running well


Solution

  • The solution is to just add the full path of the mv command and it worked well, as follow

    /bin/mv /u01/oracle/runtime/test/form1.fmx /u01/oracle/runtime/test/FORM1.FMX