paragkalra Posted August 12, 2008 Share Posted August 12, 2008 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? Quote Link to comment https://forums.phpfreaks.com/topic/119349-executing-a-batch-file-on-windows-from-linux-using-a-php-or-a-shell-script/ Share on other sites More sharing options...
tibberous Posted August 12, 2008 Share Posted August 12, 2008 Is your PHP file and your batch script both on the same server? shell_exec("c:/test.bat"); Quote Link to comment https://forums.phpfreaks.com/topic/119349-executing-a-batch-file-on-windows-from-linux-using-a-php-or-a-shell-script/#findComment-614968 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.