Operating System - HP-UX
1753773 Members
4906 Online
108799 Solutions
New Discussion юеВ

Re: Help needed to convert batch scripts to korn shell scripts

 
SOLVED
Go to solution
Becke
Super Advisor

Help needed to convert batch scripts to korn shell scripts


Hello Team,

I have some batch scripts which need to be converted into korn shell scripts, can anyone assist me converting these scripts to korn shell.

I have attached couple of scritps.

Thanks Heaps.
5 REPLIES 5
FrankJan Franken
Occasional Advisor

Re: Help needed to convert batch scripts to korn shell scripts

Converting a MS-DOS Batch to KSH is more like rewriting the script.

I think you just need a guy with script knowledge here.
Peter Godron
Honored Contributor
Solution

Re: Help needed to convert batch scripts to korn shell scripts

Hi,
I don't think there is a automatic conversion process, so it is down to re-writing the batch files manually.

Some data that should help you:
http://tldp.org/LDP/abs/html/dosbatch.html
Peter Godron
Honored Contributor

Re: Help needed to convert batch scripts to korn shell scripts

Hi,
just to get you started ;-)
The code is NOT tested and needs finishing (DOS to UNIX paths)
Becke
Super Advisor

Re: Help needed to convert batch scripts to korn shell scripts


Thanks a lot Peter I really appreciate your help,

Thats what exactly I needed. I needed help to start from somewhere, I can now modify and test the script.

I might ask you for a similar help to code few more scripts for me and I will then modify and accordingly.

Thanks again for your prompt help. I have assigned points.

Raf
Peter Godron
Honored Contributor

Re: Help needed to convert batch scripts to korn shell scripts

Raf,
thanks for the points, however... I only started the translation for you to get the basics. I am happy to help posters with problems, but I believe the forums are not 'coding shops'.

The best way to learn is to do, that's why I supplied the link and helped with the first conversion.

I am sure you have better long-term success with your project, if you first attempt the conversion and then log a summary question if you hit problems.