Relative Content

Tag Archive for oracleshell

Oracle Form use host command to execute shell script

I have a simple shell script to read file line by line, use grep | grep command to find if matched. And output to a new File.
The script works fine in command window.
However, When I try to call this script in Oracle Form with host(script,no_screen) command, the result is not what I expected. grep | grep not get expected result(works fine when manually execute in cmd window). cp -f and rm command not working neither.
It seems only IFS=read and echo ${line} >> ${file} works fine.
Wish someoen can give me advise. Thx