cancel
Showing results for 
Search instead for 
Did you mean: 

How to execute unix shell script in webdynpro?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

balaji_bodagala5
Participant
0 Kudos

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

Former Member
0 Kudos

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

balaji_bodagala5
Participant
0 Kudos

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

Former Member
0 Kudos

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

http://www.sam-solutions.net

Answers (0)