0

All,

I have a perl script (which is running on a linux server) that mounts and unmounts windows machines to grab log files. These log files are being moved onto another mounted windows machine. I have a batch file on the receiving computer that sorts these log files. I would like to call that file from the perl script. I am trying to use a linux shell command:

start $network_dir/logs/sort.bat

this line is giving me compilation errors, is there another way to run the batch file seeing as the drive is already mounted, or do I need to provide an SSH connection? I also can't figure out how to run the batch file from PuTTy (from Windows -> Linux -> mounted drive)

Thank you in advance

1
  • Mounting the drive only means that the server is allowing you to read the disk. You would have to use telnet or ssh. And I've seen people get into a whole lot of tangles trying to ssh into a windows machine. start itself is a cmd internal command. (Type where where into a command prompt and compare it to where start and see how ill-prepared windows is.) There are a lot of hoops you'll have to jump through, unless you simply use the facilities you have in linux, or arrange for a file-trigger to set off the batch file. Commented Mar 7, 2014 at 20:41

1 Answer 1

1

cmd, the shell that understands start and the commands in sort.bat, has not been ported to Linux. You cannot execute batch files outside of Windows.

Sign up to request clarification or add additional context in comments.

1 Comment

Note: There is Wine, which allows you to run Windows on a Linux machine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.