How to execute bat file in command line on remote machine using python

127 views
Skip to first unread message

Phani Kandala

unread,
Sep 10, 2018, 11:51:04 PM9/10/18
to lamp_t...@googlegroups.com, tuxfu...@gmail.com

Hi friends,

I am working on automation of sql service decom for that I have to run the batch file on remote machine batch file is having silent installation command mentioned below.

Setup.exe /configurationfile=config.ini

 we run this on command line to decom the sql  service I want to run it on the remote machine using python. Tried using wmi but no luck.
Please help me

Regards,
Phani

Phani Kandala

unread,
Sep 12, 2018, 12:45:13 PM9/12/18
to Tuxfux Tutor, lamp_t...@googlegroups.com
When I ran netstat on target showing whole bunch of port numbers where tcp is listening on different ports ex:80

On Wed, 12 Sep 2018, 22:11 Tuxfux Tutor, <tuxfu...@gmail.com> wrote:

What port is open on windows.


On Sep 12, 2018 22:10, "Phani Kandala" <kpap...@gmail.com> wrote:
Trying to connect to windows machine does fabric works


On Tue, 11 Sep 2018, 07:23 Tuxfux Tutor, <tuxfu...@gmail.com> wrote:

Try fabric.

shaik sameera

unread,
Sep 4, 2019, 12:30:13 AM9/4/19
to Phani Kandala, lamp_t...@googlegroups.com, tuxfu...@gmail.com
Hi all,

I am beginner in python scripting ,but I have been given to write difficult script which am not able to think of options ...

I should write either one.,please help me with the steps ...

Question :write a script to read a list of Linux servers as input.output should display the products
(Apache,tomcat,jboss,weblogic) Installed in each server.  

Or 

Question: find all Java installations on servets ( eg:jdk1.8.0_201-64 and jdk1.8.0_212-64) and do the following
a) display the absolute paths for each Java installation?
b)
Display for each Java ,if it's JDK or JRE

c)display the lastest minor version found on the server.

Regards,
Sameera

--
You received this message because you are subscribed to the Google Groups "Lamp_tutorial" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lamp_tutoria...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tuxfux Tutor

unread,
Sep 4, 2019, 12:32:49 AM9/4/19
to shaik sameera, Lamp_tutorial, Phani Kandala

Do find answers below

On Sep 4, 2019 10:00, "shaik sameera" <shaik.sa...@gmail.com> wrote:
>
> Hi all,
>
> I am beginner in python scripting ,but I have been given to write difficult script which am not able to think of options ...
>
> I should write either one.,please help me with the steps ...
>
> Question :write a script to read a list of Linux servers as input.output should display the products
> (Apache,tomcat,jboss,weblogic) Installed in each server.  

Python + submodule + fabric

>
> Or 
>
> Question: find all Java installations on servets ( eg:jdk1.8.0_201-64 and jdk1.8.0_212-64) and do the following
> a) display the absolute paths for each Java installation?

Python + fabric + submodule

shaik sameera

unread,
Sep 4, 2019, 12:35:03 AM9/4/19
to Tuxfux Tutor, Lamp_tutorial, Phani Kandala
Not sure what fabric are you talking about?

It should be simple ...

Can you give me the script ...

Regards,
sameera 
Reply all
Reply to author
Forward
0 new messages