Sponsored Content
Special Forums Windows & DOS: Issues & Discussions Converting UNIX scripts to DOS Post 39905 by Crozz on Wednesday 3rd of September 2003 11:45:18 PM
Old 09-04-2003
Converting UNIX scripts to DOS

Is there a tool available to convert UNIX (BASH Shell) scripts to DOS scripts?

I understand that DOS scripting is far inferior to unix scripting, and therfore this conversion may not be possible.

Alternativley, perhaps I could convert my Unix scripts to C... then compile it for a windows environment. Are there any tools to convert unix to C?

I currently run UNIX scripts on windows through emulation (using Cygwin). However, my boss wants to do away with this as he believes it unnecessary Smilie I have several thousand lines of script, most of which i didn't write, that now has to be "converted"

HELP!
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Converting Text File into XML using Unix Shell Scripts

Hi everyone, If someone out there could help me out with this problem. I would really appreciate it. I am trying to convert a file into xml format using Unix shell scripts. The file has fields with each field having a certain number of bytes, but the fields are not delimited by anything... (10 Replies)
Discussion started by: Laud12345
10 Replies

2. Shell Programming and Scripting

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. (1 Reply)
Discussion started by: darwinkna
1 Replies

3. Windows & DOS: Issues & Discussions

converting ksh scripts--.bat in window's

hi evry one , I did some ksh scripts for file editing in AIX 5.2 ver, issue is while I was trying to run these scripts in windows box as batch files windows is not recognising the awk part of the ksh script,as it is GNU environment, so any one who can help me will be appreciated. this is the... (3 Replies)
Discussion started by: 2.5lt V8
3 Replies

4. Shell Programming and Scripting

converting ksh scripts to sh

Hello All, I have a whole bunch of shell scripts written in a ksh environment and which successfully execute there. However, I found out that they eventually need to be used in a sh environment. So some commands like some_variable=$(some_command) fail because sh doesn't understand $(.....). I... (11 Replies)
Discussion started by: sherkaner
11 Replies

5. Windows & DOS: Issues & Discussions

telnet from unix to dos

hi eveybody, i use sco unix as server and dos as client . how i can connect from unix server to dos client ( how to telnet to dos and run commands?)? thanks. (8 Replies)
Discussion started by: shrb78
8 Replies

6. UNIX for Dummies Questions & Answers

How do you specify proxy server in dos/UNIX scripts?

I wrote scipts that automated file downloads from sFTP server. Not long ago a proxy server was introduce into the network, and my script failed. How do you specify proxy server in dos/UNIX scripts? :confused: Hirsi (2 Replies)
Discussion started by: hdirir
2 Replies

7. Shell Programming and Scripting

HowTo translate KSH Scripts to DOS Batch Files ?

Hi there, in near future I have to change my work surrounding from HP UNIX to Windows Vista (great to get rid of old hardware :), but bad to loose UNIX :( ). As I heavily use KSH scripts to do my job, I was wondering, if there is any HowTo available, supporting me in re-writing the scripts to... (4 Replies)
Discussion started by: Joe-K7
4 Replies

8. UNIX for Dummies Questions & Answers

converting scripts from dos 2 unix format

Hi, I am new to shell scripting and exploring it , I have developed few sample shell script but I have developed them on windows xp notepad and then saving them on folder and then testing them on cywgin and running perfectly...but these scripts are in dos format and I want to convert them in unix... (1 Reply)
Discussion started by: rahul125
1 Replies

9. Shell Programming and Scripting

Converting DOS filetype to UNIX

Hello folks I am working on a project that requires me to write a script that operates on a bunch of text files. When I try less file.txt I see a bunch of ^M's everywhere. Some Googling tells me that this is because the files have a DOS fileformat and found the following fixes: sed 's/^M$//'... (5 Replies)
Discussion started by: ksk
5 Replies

10. Shell Programming and Scripting

Converting DOS Batch file to Shell Script

Hi, This is my DOS Batch file. @echo off echo "Program Name :" %0 rem echo "Next param :" %1 echo "Next param :" "Username/Password" echo "User Id :" %2 echo "User Name :" %3 echo "Request ID ... (4 Replies)
Discussion started by: Rami Reddy
4 Replies
DOSSRV(4)						     Kernel Interfaces Manual							 DOSSRV(4)

NAME
dossrv, 9660srv, a:, b:, c:, eject - DOS and ISO9660 file systems SYNOPSIS
dossrv [ -v ] [ -s ] [ -f file ] [ service ] 9660srv [ -v ] [ -s ] [ -f file ] [ service ] a: b: c: eject [ n ] DESCRIPTION
Dossrv is a file server that interprets DOS file systems. A single instance of dossrv can provide access to multiple DOS disks simultane- ously. Dossrv posts a file descriptor named service (default dos) in the /srv directory. To access the DOS file system on a device, use mount with the spec argument (see bind(1)) the name of the file holding raw DOS file system, typically the disk. If spec is undefined in the mount, dossrv will use file as the default name for the device holding the DOS system. Normally dossrv creates a pipe to act as the communications channel between itself and its clients. The -s flag instructs dossrv to use its standard input and output instead. The kernels use this if they are booting from a DOS disk. This flag also prevents the creation of an explicit service file in /srv. The -v flag causes verbose output for debugging. The shell script a: contains unmount /n/a: >[2] /dev/null mount -c /srv/dos /n/a: /dev/fd0disk and is therefore a shorthand for mounting a floppy disk in drive A. The scripts b: and c: are similar. 9660srv is identical to dossrv in specification, except that it interprets ISO9660 CD-ROM file systems instead of DOS file systems. If the floppy drive has an ejection motor, eject will spit out the floppy from drive n, default 0. EXAMPLE
Mount a floppy disk with a DOS file system on it. dossrv a: SEE ALSO
kfs(4) SOURCE
/sys/src/cmd/dossrv /sys/src/cmd/9660srv /rc/bin/eject DOSSRV(4)
All times are GMT -4. The time now is 02:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy