![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
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. |
|
||||
|
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.. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|