Home » Developer & Programmer » Forms » Copy and open Command in Oracle 10g Linux (Minut, Ubuntu) (LINUX)
Copy and open Command in Oracle 10g Linux (Minut, Ubuntu) [message #462301] Wed, 23 June 2010 08:03 Go to next message
zahid9999
Messages: 5
Registered: June 2010
Location: PAKISTAN
Junior Member

Dear All;

I am facing one problem we used to copy any document and for open any document in WINDOWS


Host('CMD /C COPY '||'"'||:Old_Doc||'"'||' X:\03\03\'||:New_Doc);
Client_Host('Cmd /C Start '||'X:\03\03\'||:New_Doc);


But these commands not running in Linux. Please provide me any solution that will help me to copy and open any kind of document in oracle 10g in Linux. I am waiting of your positive response. thx.
Re: Copy and open Command in Oracle 10g Linux (Minut, Ubuntu) [message #462303 is a reply to message #462301] Wed, 23 June 2010 08:07 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
Well how would you do it on the linux command line?
Re: Copy and open Command in Oracle 10g Linux (Minut, Ubuntu) [message #462304 is a reply to message #462303] Wed, 23 June 2010 08:12 Go to previous messageGo to next message
zahid9999
Messages: 5
Registered: June 2010
Location: PAKISTAN
Junior Member

Dear Sir;

Yes I want to do like this, Please provide me code that will I wirte behind the button and then I will run the form It will work good in Linux for save and lod the files in oracle in OS Linux. thx
Re: Copy and open Command in Oracle 10g Linux (Minut, Ubuntu) [message #462305 is a reply to message #462303] Wed, 23 June 2010 08:15 Go to previous messageGo to next message
ThomasG
Messages: 3212
Registered: April 2005
Location: Heilbronn, Germany
Senior Member
One Linux equivalent to the Windows "start" would be xdg-open
Re: Copy and open Command in Oracle 10g Linux (Minut, Ubuntu) [message #462307 is a reply to message #462304] Wed, 23 June 2010 08:16 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
I wouldn't have a clue how to do it in linux.
Point is this isn't really a forms question - you're issuing instructions to the server. You need to know what the correct commands for linux are - nothing to do with forms.
Re: Copy and open Command in Oracle 10g Linux (Minut, Ubuntu) [message #462308 is a reply to message #462307] Wed, 23 June 2010 08:17 Go to previous messageGo to next message
cookiemonster
Messages: 13938
Registered: September 2008
Location: Rainy Manchester
Senior Member
And as I say that Thomas gives an example
Re: Copy and open Command in Oracle 10g Linux (Minut, Ubuntu) [message #462312 is a reply to message #462308] Wed, 23 June 2010 08:24 Go to previous messageGo to next message
zahid9999
Messages: 5
Registered: June 2010
Location: PAKISTAN
Junior Member

I required a code that will I write behind the button then it will open the file or save the file on disk.
I want to run this code in 10g developer in Linux enviornment.
Re: Copy and open Command in Oracle 10g Linux (Minut, Ubuntu) [message #462320 is a reply to message #462312] Wed, 23 June 2010 09:03 Go to previous messageGo to next message
ThomasG
Messages: 3212
Registered: April 2005
Location: Heilbronn, Germany
Senior Member
Well. You run a "host" command and a "client host" command. Both on Windows as it seems.

You seem to have a mapped network drive drive X: shared by the client and the host.

Basically the "linux equivalent" of those commands, substituting the shared drive X: with a shared NFS mounted directory /mnt/shared should be:

Host('cp '||'"'||:Old_Doc||'"'||' /mnt/shared/'||:New_Doc);
Client_Host('xdg-open '||'/mnt/shared/'||:New_Doc);


Re: Copy and open Command in Oracle 10g Linux (Minut, Ubuntu) [message #462322 is a reply to message #462320] Wed, 23 June 2010 09:17 Go to previous messageGo to next message
zahid9999
Messages: 5
Registered: June 2010
Location: PAKISTAN
Junior Member

Dear Sir;

"CP" is use for copy, but how it will open like a DOS mode Linux?? is it work? thx.
Re: Copy and open Command in Oracle 10g Linux (Minut, Ubuntu) [message #462333 is a reply to message #462322] Wed, 23 June 2010 09:46 Go to previous messageGo to next message
ThomasG
Messages: 3212
Registered: April 2005
Location: Heilbronn, Germany
Senior Member
What do you mean by "open like a DOS mode Linux"?

Re: Copy and open Command in Oracle 10g Linux (Minut, Ubuntu) [message #462351 is a reply to message #462333] Wed, 23 June 2010 11:44 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
It appears that Zahid doesn't know how to use Linux. The real question is: "how to copy a file using Linux's command prompt"? So this is not really a Forms question. Once Zahid learns how to copy a file in Linux, he'll just use that command in Forms HOST built-in.
Re: Copy and open Command in Oracle 10g Linux (Minut, Ubuntu) [message #464302 is a reply to message #462301] Wed, 07 July 2010 06:12 Go to previous messageGo to next message
peppebozzo
Messages: 17
Registered: March 2010
Junior Member
i have same problem. in windows os i launch openoffice application
with "Client_Host('CMD /C START soffice.exe file.odt')"
what is the linux equivalent of this command?
Re: Copy and open Command in Oracle 10g Linux (Minut, Ubuntu) [message #464308 is a reply to message #464302] Wed, 07 July 2010 06:28 Go to previous message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
You should probably ask that question in one of Linux forums, not Oracle-related one (such as OraFAQ is).
Previous Topic: locking problem when two users use the same form
Next Topic: Launch application from OracleForm in Unix OS
Goto Forum:
  


Current Time: Fri Sep 20 09:31:38 CDT 2024