The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
bash - batch script for extracting one file from multiple tar files kuliksco Shell Programming and Scripting 4 11-13-2007 02:34 AM
Batch converting documents Fred Goldman SUN Solaris 4 11-06-2007 09:27 PM
Converting Shell Script to HTML davwel Shell Programming and Scripting 3 10-25-2007 10:25 PM
how to execute a batch script from shell script lakshmis10 Shell Programming and Scripting 1 10-17-2007 12:43 PM
batch command in a shell script ivvo UNIX for Dummies Questions & Answers 7 07-20-2005 09:06 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-12-2006
darwinkna darwinkna is offline
Registered User
  
 

Join Date: May 2006
Posts: 1
Converting Shell script to Dos batch files

Hi friends!
I am having some simple shell script files to build postgresql database and all. Now i want to convert those scripts to dos batch scripts(to run on windows XP/2000/NT) because there is no need of unix emulation for latest release of postgresql. Please somebody help me.
  #2 (permalink)  
Old 05-12-2006
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,929
It is going to be difficult. The DOS shell provides very few of the things you're probably using a shell for; it has no glob matching, no real looping structures except IF x THEN GOTO y, no string operations, no quoted strings(!!) unless the application itself parses them, no elegant way to launch or wait on background processes, only very limited use of pipes, and can't even tell you what your working directory is!

If you posted a little of your existing code I could show how to convert some of it, perhaps, depending on if that was possible. Alternatively, a language like Perl might be more suitable.

Last edited by Corona688; 05-12-2006 at 11:06 AM..
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate 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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:27 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0