Jump to content

Executing a batch file on Windows from Linux using a PHP or a Shell-Script


paragkalra

Recommended Posts

Hey Friends,

 

This is my first post on this forum. It is not exactly a completely PHP based issue but still if someone can help me out .. it will be great...

 

I am developing a shell-script to automate my daily work. At one stage I want my shell-script to execute a "batch" file on Windows.

 

Please let me know what all options are available to me like "telnet" etc.

 

I was wondering if it can be done through "ftp" or "smbclient" ?

 

Can it be done by making the shell-script calling a php script that will execute the batch file on the remote machine (perhaps by using one of the vast abundant functions it is having)? Would someone like to throw some light on it?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.