Home » Developer & Programmer » Forms » Host Command
icon5.gif  Host Command [message #133816] Mon, 22 August 2005 05:35 Go to next message
smuvaise
Messages: 4
Registered: August 2005
Location: Chennai
Junior Member
Hi,

I want to create a file through host command in forms9i Linux.
I have tried it by
creating a shell script which creates a file
Then called that shell script in Host command
But the file is not created.

And if i run the shell script in the command prompt, it is working fine by creating a file.But it is not working through Host command.

Can anyone help me out

Regards
Uvaise
Re: Host Command [message #133937 is a reply to message #133816] Mon, 22 August 2005 17:30 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
It's to do with permissions associated with the user running the script. I can't recite chapter and verse but basically when you run the script at the command prompt it is using your environment and logon characteristics, but when you run it from forms it is using the form's characteristics.

Search this forum for 'host' I believe it has been raised and answered more fully a couple of months ago.

The 'correct' way (platform independant) to write a file is to use either the text_io or utl_file package (depending on the version of forms that you are using).

David
Previous Topic: Tab canvas
Next Topic: forms books
Goto Forum:
  


Current Time: Fri Sep 20 02:07:00 CDT 2024