C Program to emulate Unix Shell
₹600-1500 INR
Paid on delivery
1. A C program which can accept the following commands and perform the required actions:
a) mkdir Create a directory
sample inputs:
Single directory mkdir dir1
Multiple directories mkdir folder1 folder2 folder2/folder3
Absolute Path mkdir /rootpath/subdir/subdir2
b) cd Change CWD to specified directory
c) rm Remove a directory or a file
sample inputs:
Remove file(s) rm file1 file2 file3
Remove empty directory rm d dir1
Remove a directory and its contents rm r dir2
d) mv Move (cut & Paste) a file/Directory from one location to another
mv sourceDirectory targetDirectory
mv sourceFile targetFile
e) cp Copy a file/Directory to another destination.
f) ls List the Directory contents
g) pwd Print the CWD Path
The above given commands need to be executed with standard C functions for Unix. Usage of
exec family/system() along with bash commands is strictly prohibited.
2. A C program to accept strings in either of these forms and perform redirection: EXEC/ SYSTEM() ARE ALLOWED!
<executable_program> > <output_file>
<executable_program> < <input_file>
<executable_program> < <input_file> > <output_file>
example:
sort < [login to view URL] > [login to view URL]
3. A C program to accept the names of two or more executable programs and redirect the
output of the first program to the input of the second program, output of the second program to
the input of the third program, and so on.
The executable files will be separated by |
example:
ls | sort | wc
4. A C program to combine all the above 3 parts.
Along with all the above functionalities and commands, the program should execute any binary
file that is either in the given relative/absolute path or those in the $PATH environment. You must
use exec family of functions for executing these binaries, but not for the commands specified in
part 1.
example:
ls | sort r > [login to view URL]
ls is from your own function
sort r from exec functions
redirection and piping again from your own functions
Deliverables:
The C programs for parts 14 compressed in a .tar file
Project ID: #6285708
About the project
9 freelancers are bidding on average ₹3073 for this job
hi i can deliver this in less than 6 hours please fell free to contact me thanks ##########@#############
Can make it fast. Work for a few hours. Have nice experience in concole C programming. Skype: anjsteam
Hi, I'm new here(freelancer.com). I'm professional on linux and programming. If you need more further info, feel free to contact with me. Best regards, ScksAk
Hello. I'm an C/C++ developer with 6 years experience in the field. It will be a pleasure to do this task
Have experience in developing Unix shell scripting and also in c programming. Already Worked as freelancer. Ensure the zero defects in result. Cross platform knowledge in developing toold in shell scripting. Will deli More
G'day! I can do this very easily, I'll have it done in a matter of hours. There are system calls for all the requirements in item (1) which I can quickly leverage to perform those tasks. Item (2) is a very simple re More