How to execute a shell script from Java in Eclipse

How to execute a shell script from Java in Eclipse

raksrahul

4 года назад

15,666 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@DurgeshKumar-ij5hb
@DurgeshKumar-ij5hb - 10.12.2022 10:30

I have two pc. PC-1 and PC-2 and I have same script in PC 2 and I want to run the program in PC-1. How i will do but I have username password ip address and file location. These things. How i will do please please help me.

Ответить
@mayankmittal1344
@mayankmittal1344 - 20.10.2022 06:14

Hi Rahul, could you kindly share the code snippet which you used?

Ответить
@kotharajashekhar1252
@kotharajashekhar1252 - 11.10.2022 12:45

It is working fine but i want execute multiple shell script based on condition, can you please give me a code

Ответить
@movielifelives
@movielifelives - 14.07.2022 20:09

How to do this via keys on keyboard

Ответить
@avedkathi
@avedkathi - 01.12.2021 09:22

Can we do this using Java with existing Cucumber bdd Frame work: Unix batch Automation for which jdk version batch is using?. if we can how to do it

Ответить
@aristidebossou
@aristidebossou - 04.10.2021 12:52

Very helpFull...Thank you.

Ответить
@Animemarkotaku
@Animemarkotaku - 23.07.2021 02:21

Thank you so much, I'll try to execute on Spring Boot and it must execute a jar file. Greetings.

Ответить
@debangshudeb2647
@debangshudeb2647 - 14.07.2021 22:34

CreateProcess error=193, %1 is not a valid Win32 application ,getting this error

Ответить
@rockerhackpower504
@rockerhackpower504 - 30.06.2021 08:49

Hi! Do you think this can be done from a Windows machine, where .sh processes are run via putty remotly?

Ответить
@sparrowsamuel8459
@sparrowsamuel8459 - 17.06.2021 14:19

Good! but how do we do if the script is an interactive script?

Ответить
@clarksinga8042
@clarksinga8042 - 14.04.2021 12:49

are you on windows?

Ответить
@zestful14
@zestful14 - 10.02.2021 17:15

This worked perfectly for me, thank you so much!

Ответить