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!
How can I do that ? do I have to create a .sh file ????
Thanks in advance!
ASKER
Ok... thanks.... after I'll have 'translated' it, where do I put it ? in Ubuntu or in Win2000 machine ?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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?
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can try installing wine..Using wine you can run windows exe and bat file by just double clicking
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