Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
To whom it my concern i was hoping you might be able to help a confused first year computing student. I have been set the following assignment which i am having alot of difficulty with, and was hoping you might have some useful info. which might help in my studies or even some useful tips
thank you for your time, hope to hear from you soon if your not to busy that is.
Your's sincerely
Paul.Part A - DOS command interface
You will create a DOS command interface that allows DOS users to interact with UNIX.
1. Create a directory called $HOME/dbin that will contain your DOS command interpreter commands
2. In dbin, create scripts for each of the DOS commands below:DOS
Cd
Md
Rd
Dir
Copy
Del
Type
Rename
Edit3. In dbin, create a script called unixtodos that:
· sets the user prompt to show the current directory
· adds the your dbin directory to the PATH
4. In dbin, create a script called dostounix that restores the:
· path
· and the prompt5. In dbin, as part of the DOS environment, write a script called compile, that takes the filename of a C source program, compiles it using the gcc compiler and creates a executable file using the filename
[i.e.]
$ compile hello
$ ls -F
hello.c
hello*
$6. System Calls - Create a new command for the DOS environment called createfile that uses a system call to create a blank UNIX file with the following default file permissions
-rw-r--r--
7. Write a utility for the DOS environment called bytes, that displays the size in bytes of any specified filename

hello there,
my name is john and i have a problem
with a networking assement.
i need ideas for a small network.
and some information on unix shell scripts

Paul,
Reference the above problems, do you know any unix?
If not, it would be advisable to go out and get a good boot, however the above scripts should only have to be a few lines. I will give you the equivalent unix commands and that should atleast point you in the right direction.DOS UNIX
Cd chdir
Md mkdir
Rd rmdir
Dir ls
Copy cp
Del rm
Type cat (or more)
Rename mv
Edit vi (not very friendly!)3. Your prompt is stored as variable PS1 and path can be added useing:
PATH=$PATH:$HOME/dbinI don't want to tell you all the answers but if you need any more help then please contact me.
Regards,
Anthony.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |