on 05-08-2007 8:07 AM
hi all,
We have some iquirement of executing script in unix.If anyone know How to execute unix shell script in webdynpro?
best regard
reefish
Hi,
try this code in webdynpro method or action events,
String command = "give ur command that will pick ur Native commnad";
Process p = Runtime.getRuntime().exec("command");
that means if your using windows :command is like this type test.txt
Thanks,
Balaji
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
I think there is some diferent of our case.For all thanks very much.
Our portal server run on a Win2003 servre. and we have another unix machine run DB server.There is some app developed by unix script. We wan't to call this unix app in our webdybpro app. How can i implement?
best regard.
reefish
Hi ,
can you try this way,
write two java programs,by using RMI you can use call some method remotely,that method will trigger the unix system calls,that out put you can get it in windows application.from that application store some text file,that text file you can call in webdynpro.
Thanks,
Balaji
Ree,
1. Find SSH client for windows, then execute SSH with Runtime.exec() on local host with arguments like remote host, auth, command to execute etc.
2. Get SSH client in Java and execute SSH commands on remote host using pure Java API.
Don't ask me for links, Google works today, I checked this
Valery Silaev
SaM Solutions
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.