Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
09-17-2004, 06:40 AM
|
#1
|
|
LQ Newbie
Registered: Aug 2003
Location: China
Posts: 2
Rep:
|
any shell script 2 batch file tools?
I wonder if there is any software or tools that can convert syntax of bash shell script to windows batch files. I have a shell script and I need to "translate" it into batch file to be able to run under windows nt. Does anyone know any software that can perform such task? I found some that can convert batch file to shell script but not vice versa. Thanks in advance.
|
|
|
|
09-17-2004, 07:04 AM
|
#2
|
|
Senior Member
Registered: Jul 2004
Location: Nantes (France)
Distribution: Arch Linux
Posts: 1,897
Rep:
|
This kind of transformation can only go one way, because unix shell scripts are way more powerfull than dos batch files.
The best answer to your need IMO, is to install Cygwin on the windows PC.
Yves.
|
|
|
|
01-03-2007, 03:24 AM
|
#3
|
|
LQ Newbie
Registered: Jan 2007
Posts: 1
Rep:
|
need your help
you have written that you have software that can convert a batch file to shell script i need that its very urgent can u forward it to me. i shall be thankful to u for this
Quote:
|
Originally Posted by rosbur
I wonder if there is any software or tools that can convert syntax of bash shell script to windows batch files. I have a shell script and I need to "translate" it into batch file to be able to run under windows nt. Does anyone know any software that can perform such task? I found some that can convert batch file to shell script but not vice versa. Thanks in advance.
|
|
|
|
|
01-03-2007, 07:29 AM
|
#4
|
|
Senior Member
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515
Rep:
|
No, theYinYeti didn't mean that. Cygwin is a software that allows you to run some (or most) Linux commands on Windows.
So, it cannot convert bash script to Dos scripts, but Cygwin should allow you to run your bash scripts on your Windows machine directly (without conversion).
You can find Cygwin at http://www.cygwin.com, where you can download it for free.
|
|
|
|
01-03-2007, 09:09 AM
|
#5
|
|
Member
Registered: Jan 2006
Location: USA
Posts: 457
Rep:
|
Cygwin does indeed convert shell to batch, problem is it doesn't output a bat file, it executes the shell script.
|
|
|
|
01-03-2007, 10:24 AM
|
#6
|
|
Senior Member
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515
Rep:
|
@Linux_Kidd: in my book, "conversion" means that you go from one format (Shell/Bash) to the other (DOS/batch).
That's why I said that Cygwin only "runs" shell/bash scripts, rather than converting them to DOS .bat's.
|
|
|
|
01-15-2008, 08:53 AM
|
#7
|
|
Member
Registered: Jan 2008
Posts: 75
Rep:
|
In reply :
You could always use the following sites as a guidelines for the UNIX / DOS commands equivalents.
It`s more or less a tutorial site for creating Shell Scripts from DOS Batch Files, but on the
site`s Table Of Contents page it has a link to the page showing the conversions on
Table of Contents :
http://tldp.org/LDP/abs/html/
Conversions Page :
http://tldp.org/LDP/abs/html/dosbatch.html
|
|
|
|
11-30-2009, 04:23 AM
|
#8
|
|
LQ Newbie
Registered: Nov 2009
Location: India
Posts: 1
Rep:
|
Conversion of batch files to shell scripts
Hi ,
Can anyone please tell me the software used to convert the bat files to shell scripts.
u can mail the details at lavanya.chanamgari@gmail.com
thanks
|
|
|
|
12-01-2009, 12:40 PM
|
#9
|
|
Gentoo support team
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 3,965
|
Quote:
Originally Posted by Lavanya
Hi ,
Can anyone please tell me the software used to convert the bat files to shell scripts.
u can mail the details at lavanya.chanamgari@gmail.com
thanks
|
No, if you read the thread you'll note there's no such thing that we know of.
Secondly, we don't do private consulting. If there's a solution we will post it here so everyone can benefit from it.
Third, you are inviting the smapbots to effectively spam your mail account by showing your mail address here, so good luck with that.
|
|
|
|
07-24-2012, 06:57 AM
|
#10
|
|
LQ Newbie
Registered: Dec 2010
Posts: 4
Rep:
|
SHC under Cygwin compile bash to exe
I just modified a version of SHC to Cygwin. Can compile bash to exe and run under Cygwin.
Please folow http://goo.gl/M1NSY to sources, binary, and questions. Tkz
|
|
|
|
08-04-2012, 09:48 AM
|
#11
|
|
LQ Newbie
Registered: Aug 2012
Location: croatia
Distribution: xubuntu
Posts: 22
Rep:
|
what? bash2bat? perverts...
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:48 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|