Link to home
Start Free TrialLog in
Avatar of blueshaolin
blueshaolin

asked on

Trying to run .bat file in windows machine from an ubuntu desktop

Hi, I'm a newbie in Linux, I just installed Ubuntu 7.04 and I'd like to run a .bat file located in a Windows 2000 server machine like you'd do with any OS from Microsoft. All I get when I double click on it is the ubuntu text editor.

How can I do that ? do I have to create a .sh file ????

Thanks in advance!
Avatar of computerfixins
computerfixins

Hmm, well linux and dos have alot of differeneces so you may want to write a bash script or perl (whatever you are more comfortbale using).

Here's a good translation page if your a hardcore DOS fan http://www.tldp.org/LDP/abs/html/dosbatch.html

a bash script is normally named .bsh

#vi helloworld.bsh

'a for edit
echo hello world
'save and exit wq

#chmod 777 helloworld.bsh

#./helloworld.bsh
Avatar of blueshaolin

ASKER

Ok... thanks.... after I'll have 'translated' it, where do I put it ? in Ubuntu or in Win2000 machine ?
ASKER CERTIFIED SOLUTION
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Well in theory you can store it anywhere, you just need to run it from a unbuntu booted machine.

What are you trying to do?






> .. you just need to run it from a unbuntu booted machine
ignoring the word "booted" I assume that you meant that the ssh/rsh command needs to be run on that machine, not the script itself
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You can try installing wine..Using wine you can run windows exe and bat file by just double clicking