Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: HOST command not working

Started 1 month, 3 weeks ago by user11369739
Oracle AS Version 10.1.2.0.2, Oracle Forms Version 10.1.2.0.2, Windows XP. I am using HOST command to read a files from the directory (on the server). But HOST does not working. When i click the button to read the file, it just hangs on and no error on the console. Does host work on forms 10g? actually i was using client_host of webutil and its working...
Site: www.oracle.com  www.oracle.com - site profile
Forum: Forms   Forms
 - forum profile
Total authors: 5 authors
Total thread posts: 33 posts
Thread activity: no new posts during last week
Domain info for: oracle.com

Other posts in this thread:

S@R@h replied 1 month, 3 weeks ago
hi try something like this. client_host ( 'cmd /C start c:\a.mp3'); else message ( 'error' ); end if; end; Sarah Edited by: S@R@h on Nov 5, 2009 2:30 AM

Magoo replied 1 month, 3 weeks ago
Hi! Please show us your code. May the host command is not beeing closed. try something like: host ( 'cmd /C your_command' ); Regards

user11369739 replied 1 month, 3 weeks ago
host('C:\javasoft10g\jre\bin\javaw -classpath C:\javasoft10g\jre\libt.jar;'||afile||';'||vfile|| ' ecscClient ' ||vtmmm||' '|| vwall ||' '||vusrname|| ' ' || '0' || ' ' ||TO_CHAR(vnum)||' '||v_rmi_ip);

user11369739 replied 1 month, 3 weeks ago
do we also need to set a path in default.env???

Magoo replied 1 month, 3 weeks ago
May it would be easier to create a batch file and call that with the host command. host ( 'cmd /c batchfile.cmd' ); to check if the environment is proper set when your host command is running create a textfile with: host ( 'cmd /c set > c:\env.txt' );

Francois Degrelle replied 1 month, 3 weeks ago
host('C:\javasoft10g\jre\bin\javaw -classpath C:\javasoft10g\jre\libt.jar;'||afile||';'||vfile|| ' ecscClient ' ||vtmmm||' '|| vwall ||' '||vusrname|| ' ' || '0' || ' ' ||TO_CHAR(vnum)||' '||v_rmi_ip); In case of dynamic string population, it is strongly recommanded to output the result of the string to understand the issue. Else, you are going to ...

Arunkumar Ramam... replied 1 month, 3 weeks ago
Hi, Try this. declare v_command varchar2(1000); begin ... ... v_command : = 'C:\javasoft10g\jre\bin\javaw -classpath C:\javasoft10g\jre\libt.jar;' ||afile|| ';' ||vfile|| ' ecscClient ' ||vtmmm|| ' ' || vwall || ' ' ||vusrname|| ' ' || '0' || ' ' ||TO_CHAR(vnum)|| ' ' ||v_rmi_ip; Message(v_command); Message ( ' ' ); -- ====> Make sure you the ...

user11369739 replied 1 month, 3 weeks ago
ok when i use host('cmd /c set > c:\env.txt'); it creates a file on the server which means that the paths are set. Now to run the requried file i did as: host('cmd /C:\javasoft10g\jre\bin\javaw -classpath C:\javasoft10g\jre\libt.jar;'||afile||';'||vfile|| ' ecscClient ' ||vtmmm||' '|| vwall ||' '||vusrname|| ' ' || '0' || ' ' ||TO_CHAR(vnum)||' '||v_...

Arunkumar Ramam... replied 1 month, 3 weeks ago
From the command prompt, if you run C:\javasoft10g\jre\bin\javaw -classpath C:\javasoft10g\jre\libt.jar;C:\javasoft 10g\paths;;C:\javasoft10g\paths\dusjava.jar; ecscC lient 1709353 E DUS 0 0 192.168.100.141 Are you able to run without any errors? -Arun

user11369739 replied 1 month, 3 weeks ago
Arunkumar Ramamoorthy wrote: From the command prompt, if you run C:\javasoft10g\jre\bin\javaw -classpath C:\javasoft10g\jre\libt.jar;C:\javasoft 10g\paths;;C:\javasoft10g\paths\dusjava.jar; ecscC lient 1709353 E DUS 0 0 192.168.100.141 Yes when i run this command on server's cmd it works fine

 

Top contributing authors

Name
Posts
user11369739
14
user's latest post:
HOST command not working
Published (2009-11-05 09:55:00)
okay thanks all of you for the knid help, i'll surely search for some alternative.
Arunkumar Ramam...
10
user's latest post:
HOST command not working
Published (2009-11-05 10:10:00)
Sure, You are welcome . May be its time for you to go through this . -Arun
Magoo
7
user's latest post:
HOST command not working
Published (2009-11-05 09:41:00)
so why did you change it from client_host to host() ?
S@R@h
1
user's latest post:
HOST command not working
Published (2009-11-05 02:08:00)
hi try something like this. client_host ( 'cmd /C start c:\a.mp3'); else message ( 'error' ); end if; end; Sarah Edited by: S@R@h on Nov 5, 2009 2:30 AM
Francois Degrelle
1
user's latest post:
HOST command not working
Published (2009-11-05 02:32:00)
host('C:\javasoft10g\jre\bin\javaw -classpath C:\javasoft10g\jre\libt.jar;'||afile||';'||vfile||' ecscClient ' ||vtmmm||' '|| vwall ||' '||vusrname|| ' ' || '0' || ' ' ||TO_CHAR(vnum)||' '||v_rmi_ip); In case of dynamic string population, it is strongly recommanded to output the result of the string to understand the issue. Else, you are going to spend...

Related threads on "www.oracle.com":

Related threads on other sites:

Thread profile page for "HOST command not working" on http://www.oracle.com. This report page is a snippet summary view from a single thread "HOST command not working", located on the Message Board at http://www.oracle.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity