Execute a Window program from Unix box using Java
Hello everyone,
I need to call a application running on a Window box from Shell Script on a Unix box. Does any one have some idea how to do it? Sample codes? I was thinking using Java. Any feedback appreciated.
Thanks.
CrossonKevin
Search
Profit
http://onesearch.sun.com/search/developers/index.jsp?col=devforums&qp_name=Java+Programming&qp=forum%3A31&qt=execute+program
Similar Messages
-
How to execute a Window program from Unix box using Java
I am trying to execut a program running on a Window box from Shell Script on a Unix box. Does anybody knows how to do that using Java. Thanks. Any feedback appreciated.
kevinYou need to use
String fileNane = "setup.exe";
Runtime.getRuntime().exec(fileName);that is if you are writing code
if you are just calling if from a terminal just write
java then the file name ( well I think that is right :)
I do know that the code above work as I have it working on a windoze box
Craig
Hope this is right if not please let me know -
Access Windows Drive from UNIX using Java
Does anyone know if you can access a windows share from a unix machine using Java?
What options are available? Would a samba client have to be installed on the UNIX server first?mdreelin wrote:
Does anyone know if you can access a windows share from a unix machine using Java?If your operating system can see the file system, I don't see why it wouldn't be available to Java.
What options are available? Would a samba client have to be installed on the UNIX server first?Well you'd have to do something like that, otherwise you'd have to remote it via RMI or something (not recommended). -
Execute unix command using java
Hello
Can we execute a unix command using java? If it is how we can execute. Is this affect the performance of the program.
ThanksI tried what you said. But its not working and returning error message,
java.io.IOException: CreateProcess: ls -a error=2
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
If i try this statement,
Runtime.getRuntime().exec("c\windows\notepad");
It is working fine.
Any idea about this.
Plz ........... -
I want to be able to execute a swing program from my desktop
i want to be able to execute a swing program from my desktop but i dont know how to go about it. Till now to run the programs i used command prompt. please can you guys help me cross this huddle. I need step by step solution to do this
In Windows, you associate a .jar file with javaw. YOu can do this with a right-click on the system icon, if I recall correctly.
Another option is to wrap the jar file in an executable wrapper so it looks like an .exe. I have used JSmooth to good effect for this.
Good luck. It is only modestly tricky -
PLSQL WANTS TO RUN WINDOWS PROGRAM FROM PLSQL PROCEDURE
WANTS TO RUN WINDOWS PROGRAM FROM PLSQL PROCEDURE.
I want to run EXE file from pl/sql program , i have tried host it does
work in pl/sql .
Is there any Solution to this problem
Thank youHi,
It sounds like what you are trying to do, is run one mapping in a pre-mapping process of another mapping. You use a wrapper that implements sqlplus_exec_template.sql in PL/SQL. Is that correct?
I don't think that by the way you execute this mapping, it ends up in the context of the process flow. The reason is because according to Warehouse Builder the mapping is being invoked standalone (through the wrapper that implements the template). As a result, the context in which Warehouse Builder would log the messages is lost.
What I suggest you do (assuming I understand the problem correctly), is run the mapping as a separate mapping in the process flow. Because in the current release we do not support passing output parameters in the process flow, you will have to (temporarily) store the results of the first mapping in a table and pick it up from there in the other mapping. In the next major release (autumn 2004) we will support passing parameters between activities.
Thanks,
Mark. -
How to submit a cuncurrent program from UNIX?
How to submit a concurrent program from UNIX.Plz reply immediatly
Please see;
Oracle Metalink Document: How to Submit a Concurrent Request Using CONCSUB Syntax: Doc ID: Note:457519.1
https://metalink.oracle.com/metalink/plsql/f?p=130:14:5250231761732667752::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,457519.1,1,1,0,helvetica
Adith -
JCO.Server Error while trying to execute a RFC program from SAP
Hi,
We are connecting to an external registered server program from SAP via Web Methods.
The external server program is registered with the SAP Gateway. We have created a TCP/IP RFC destination and are able to connect to the destination successfully via SM59.
An RFC function is created in SAP and is called using the syntax CALL FUNCTION "/NGN/BAPI_STRE_SEARCH_PROCESS" DESTINATION 'PRDB2B'. We have also handled the COMM_FALIURE and SYSTEM_FALIURE exceptions in the function call.
We are monitoring the gateway via SMGW and see a connection log to the RFC destination as below
Number - 10
LUname - dev01
TPName - sapgw00
User - KRAORANE
Status - CONNECTED
Symbolic - PRDB2B
Conversation - 86520353
Prot - REG
SAP return code - 0
CPIC rtn code - 0
The external program returns results as expected.
However sometimes the RFC fails and returns the message JCO.Server could not create server function /NGN/BAPI_STRE_SEARCH_PROCESS.
We are not able to figure what exactly is causing this error. Any help will be highly appreciated.
-KiranHi,
Please see the below links..
JCO.Server Error while trying to execute a RFC program from SAP
Re: JCO.Servcer could not find server function
Re: JCO.Server could not find server function 'SET_SLD_DATA'
/people/kathirvel.balakrishnan2/blog/2005/07/26/remote-enable-your-rfchosttoip-to-return-host-ip-to-jco
Re: interfacing SAP with an existing java applications
http://help.sap.com/saphelp_nw04/helpdata/en/47/80f671ee6e4b41b63c0fe46bd6e4f8/content.htm
http://www.sapgenie.com/faq/jco.htm
Regards
Chilla.. -
How to ftp to windows server from unix server
Hi Gurus,
Can anybody please guide me how to ftp the files to windows server from unix server. I can do the file transfer via unix by using the shell scripts, where as for windows how can we do that.
Please advice.
Regards
NagendraHi.
It's possible many solution.
1. Setup Ftp server on Windows and use general scripts.
http://support.microsoft.com/kb/323384
2. Create general share folder on windows and use smbclient from samba.
3. Create general share folder on windows and mount this folder to Linux.
Reagrds. -
Executing an SSIS package from TSQL without using xp_cmdshell?
How can I execute an SSIS package from TSQL without using xp_cmdshell?
I have a web-app which calls some SQL which executes my SSIS package (a DTSX file, but stored in the server). But the security policy for my application won't permit me use to xp_cmdshell.
I want to do this:-
DECLARE @returncode int
EXEC @returncode = xp_cmdshell 'dtexec /sq pkgOne"'
Is there another way for executing a Package without going to the command line (e.g. is there some other system stored proc)?
ThanksWhoa - don't go taking my words as saying "it should work". I never said that - I just said I know less than you :) I'm assuming that since the CLR is .Net, and you can launch a package from .Net code, you may be able to do so from the CLR.
But... I also know that CLR has lots of restrictions on it, and some of those may cause you to be unable to run it from the CLR.
One thing I will say - I've never heard of anyone doing this. That's got to tell you something about:
Whether it can be done at all... although I think I'd have heard/seen something about how it's not possible.
Whether it's a good idea... maybe other routes are less trouble.
Talk to me now on -
How to execute a Perl program from within a Java prog
How do I execute a Perl program from within a Java program.
Lets say the Perl program that I want to execute is 'abc'. Now, 'abc' requires some input that I want to give it from within the Java program. How do I do it?
And finally, how do I execute that Perl program from within the Java program.
If I execute the Perl program alone then I do it in the following way -
perl abc inp1 inp2 inp3
where inp1, inp2, inp3 are inputs to the Perl program. I will not be able to change or modify the coding of the Perl program - 'abc' as I do not have access to its code. Its a kind of an application whose usual method of execution is in the above shown way. So, how do I execute 'abc' from within a Java program.what part of don't crosspost, don't you understand?
http://forum.java.sun.com/thread.jsp?forum=4&thread=427193 -
Executing a Perl program from within a Java prog
How do I execute a Perl program from within a Java program.
Lets say that the Perl program that I want to execute is 'abc'.'abc' requires some input that I want to give from within the java program. How do I do that? Then I want to execute the Perl program from within the Java prog. How do I do it?don't crosspost.
http://forum.java.sun.com/thread.jsp?forum=31&thread=427211&tstart=0&trange=100 -
How to read a data from USB port using JAVA
hi all,
i need to know how to read a data from USB port using java. any API are available for java ?.........please give your valuable ideas !!!!!!!!!
Advance Thanks!!You can do this. Please use this link
[http://www.google.co.in/search?hl=en&client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&hs=uHu&q=java+read+data+from+usb+port&btnG=Search&meta=&aq=f&oq=]
What research did you do of your own? Have you done some testing application and tried yourself?? -
Hi,
I'm trying to find the best way to send a mesage box using Java Studio and swing GUI.
I tried this:
jOptionPane1.showInternalMessageDialog(null,"Please Enter a correct Input Path!","Invalid",jOptionPane1.INFORMATION_MESSAGE);Problem is the jOptionPanel is always visible. Is there a better way to show a message box?
ThanksSorry I found a better way.
jOptionPane1.showMessageDialog(null, "Invalid Input Path", "Please enter a correct value", jOptionPane1.INFORMATION_MESSAGE );Thanks -
Open a file dialog box using java
Duncan & Frank or anyone
Can you please tell, or give me a link, which explains how to open a file dialog box using java, and not webutil.
I'm trying to read a file on the desktop and update a database table.
ThanksSee Open File Dialog on the WEB... If you can get me the full version numbers I can tell you your supported position.
Regards
Grant
Maybe you are looking for
-
Problem working with HttpClusterServlet
hi: this is the first time i work with weblogic6.1(NT platform) cluster. i config the DefaultWebApp as web application which will proxy requests to my cluster which consists of two weblogic server running on the same hos
-
I'm using a 20 inch screen for a presentation and I can't get the full size of the screen to work - spanning only give the size of the laptop screen and so does mirroring. I don't know how to set it up to use the larger screen only? is there a way? t
-
Since Adobe insist on monthly payments, why make it difficult by not allowing modern payment methods such as Paypal? I have a Paypal UK account but this option is not displayed when I attempt to alter payment methods.
-
ACS 4.2.1.15 Upgrade: no more web access
Hi, I upgraded my ACS 4.2 on a Windows 2003 R2 Standard Edition SP2 Server to 4.2.1.15.9. The server seems to be running, I see that it is able to authenticate and authorize my logins and commands on Cisco devices. However when I try to launch the we
-
Can't open file after editing video in CS5
I have now tried editing a video file three times in PHotoshop. Each time it has frozen during export, and when I Force Quit and try to reopen the file I get an error message that I can't open this format of document with my version. I have an Educat