LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-20-2004, 11:05 AM   #1
dave1.1
LQ Newbie
 
Registered: Oct 2004
Distribution: slackware/redhat
Posts: 9

Rep: Reputation: 0
Question .bat files on Linux?


I have some bat (batch) files from windows, is there any way to run them in linux without doing anything too difficult?

thanks.
 
Old 10-20-2004, 11:52 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,949

Rep: Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530Reputation: 1530
I guess it depends on what the batch file does. AFAIK there is no automatic utility that will convert a DOS batch file to a bash shell script.

http://www.tldp.org/LDP/abs/html/
http://www.linux.com/guides/abs-guide/dosbatch.shtml
 
Old 10-20-2004, 12:17 PM   #3
Haiyadragon
Member
 
Registered: Sep 2003
Location: Gorredijk, Netherlands
Distribution: Arch Linux
Posts: 400

Rep: Reputation: 30
Most commands in those batch files are probably Windows commands. I don't think they'll work.
 
Old 10-20-2004, 12:23 PM   #4
apolinsky
Member
 
Registered: Oct 2004
Location: Brooklyn
Distribution: Slackware 14.1, 14.2; Debian Jessie; Centos 6; FreeBSD 9 & 10
Posts: 272

Rep: Reputation: 35
In Linux you would write a shell script to run repetitive tasks. The shell commands are much more powerful than those available under windows. Take a look a manual on shell programming.
 
Old 10-20-2004, 12:32 PM   #5
dave1.1
LQ Newbie
 
Registered: Oct 2004
Distribution: slackware/redhat
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks, ill try the links.
 
Old 10-21-2004, 08:15 PM   #6
shengchieh
Member
 
Registered: Jul 2004
Location: Palo Alto, CA
Distribution: #! Korora
Posts: 472

Rep: Reputation: 30
Try a DOS emulator

Commercial:

Crossover
Wine
Win4Lin
etc.

Free:

dosbox
http://dosbox.sourceforge.net/news.php?show_news=1

dosemu-freedos
http://packages.debian.org/unstable/...u-freedos.html

There're others.

Sheng-Chieh
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
echo bat files HELP jollyjoice Programming 5 11-02-2005 03:53 PM
linux bat file? Shalk Linux - General 3 07-26-2005 11:07 AM
Linux version of a .bat file? bigbear_2345 Mandriva 2 12-04-2003 06:46 PM
"batch files" in red hat, similar to .bat files in dos shycalais Linux - Newbie 2 10-12-2003 09:34 AM
Autoexec.bat in Linux? sikandar Linux - Software 10 08-31-2003 01:30 PM


All times are GMT -5. The time now is 08:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration