Home » Developer & Programmer » Forms » problem in HOST
problem in HOST [message #348288] Tue, 16 September 2008 06:14 Go to next message
monikabhakuni
Messages: 110
Registered: September 2008
Location: India
Senior Member
I am trying to execute the UNIX commands from the form. I am using the HOST command/built-in. But the command is not working from the form.

When I execute the same command from PUTTY in applfisd, the command executed successfully.



For testing I am using the following command in the form:



HOST (‘rm $TF_TOP/delfile.txt’);



This code I have added in WHEN-NEW-FORM-INSTANCE. The expected result is that the file delfile.txt should be removed from the path $TF_TOP, when the form is opened.

But the file is not removed.



Please let me know your inputs to resolve this issue.



Re: problem in HOST [message #348754 is a reply to message #348288] Wed, 17 September 2008 20:59 Go to previous message
djmartin
Messages: 10180
Registered: March 2005
Location: Canberra ACT Australia
Senior Member
Account Moderator
The host command is executed in a NEW session, not your current one. You have to establish the environment so that it looks like your current one (do a ". .profile"?).

Have a look at http://www.orafaq.com/forum/m/347580/67467/?srch=host+script#msg_347580

David
Previous Topic: scrollbar creation
Next Topic: Form Error
Goto Forum:
  


Current Time: Sat Dec 10 01:06:18 CST 2016

Total time taken to generate the page: 0.17848 seconds