bash shell script and ms-dos


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting bash shell script and ms-dos
# 1  
Old 11-08-2006
bash shell script and ms-dos

Hi... I need your help.....
I would like to create a bash shell script, which it could someway to stimulate the MS DOS to accept and do the most basic commands of MS DOS...
# 2  
Old 11-10-2006
you don't need to create a script ... just use an alias for the commands you want to simulate what you want (i.e., alias dir=/usr/bin/ls) ...

unfortunately, you're going to run into issues when you use dos-style options with unix commands so a script maybe better for you ...

... you might just be better off learning the unix commands outright unless you're trying to help somebody out ... besides, you'd have a hard time scripting if you don't know which commands do what function ...


well ... i wish you luck!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

In Bash shell - the ps -ef shows only the /bin/bash but the script name is not displayed

In Bash shell - the ps -ef shows only the /bin/bash but the script name is not displayed ? Is there any way to get the script names for the process command ? --- Post updated at 08:39 AM --- in KSH (Korn Shell), my command output shows the script names but when run in the Bash Shell... (3 Replies)
Discussion started by: i4ismail
3 Replies

2. Shell Programming and Scripting

Different behavior between bash shell and bash script for cmd

So I'm trying to pass certain json elements as env vars and use them later on in a script. Sample json: JSON='{ "Element1": "file-123456", "Element2": "Name, of, company written in, a very weird way", "Element3": "path/to/some/file.txt", }' (part of the) script: for s... (5 Replies)
Discussion started by: da1
5 Replies

3. Shell Programming and Scripting

Convert for command from DOS to SHELL

Well, this command has served me quite well under DOS for %%X in (*.txt) do COMMAND however in linux it just outputs: "./install.sh line 1: '%%x': not a valid identifier. Ideas ? Thanks in advance (2 Replies)
Discussion started by: pasc
2 Replies

4. 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

5. Shell Programming and Scripting

Dos batch script to execute unix shell script

Can anyone help me with a dos batch script to execute a shell script residing in an unix server. I am not able to use ssh. Thanks in advance (2 Replies)
Discussion started by: Shri123
2 Replies

6. UNIX for Dummies Questions & Answers

Unix shell, Dos batch

Is the unix shell script equivalent to dos batch command? Thanks (2 Replies)
Discussion started by: zhshqzyc
2 Replies

7. Linux

Dos shell

Dear all, I am trying to write a unix shell with C++ that is similar to Windows command line. I planned to call it Dosh (DOS-sHell).That means you can directly run dos or win32 console programs with it. It will be distributed according to the license g GPL. Any advice? (This is my first c++ program... (3 Replies)
Discussion started by: elgarteo95
3 Replies

8. UNIX for Dummies Questions & Answers

Unix Emulator for DOS Shell

would like to have ls, wc -l, etc all availble in this silly dos shell I'm stuck in thanks! (1 Reply)
Discussion started by: robersh
1 Replies

9. 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

10. Shell Programming and Scripting

Shell script to create a DOS-like Menutiem

Dear all, Greetings ! I am writing in order to pick your brains on an issue I have. If you remember in good old MS-DOS, one was able to change the autexec.bat and config.sys files so as to enable various configuration menus. I used it in order to have my PC (486 DX 66MHZ) run games with all... (2 Replies)
Discussion started by: bionicfysh
2 Replies
Login or Register to Ask a Question