![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Adding a job to crontab via shell script | proactiveaditya | Shell Programming and Scripting | 1 | 3 Weeks Ago 01:45 AM |
| Help with Shell Script displaying Directories | cjnd1988 | Shell Programming and Scripting | 11 | 04-23-2009 03:36 AM |
| Adding ssh commands to a shell script | Moxy | Shell Programming and Scripting | 3 | 07-17-2008 02:47 PM |
| Adding options to a shell script | paulobrad | Shell Programming and Scripting | 1 | 07-15-2008 09:58 AM |
| Adding -options to shell scripts | sysera | Shell Programming and Scripting | 4 | 06-21-2005 10:56 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Hi.
im learning unix, and i have problem with my shell . i want to add hierarchical directories. so theshell have mkdir, rmdir and chdir commands. the coding in C language. i looked at the source of mkdir for example, and its very long and complicated. i need simple implementation for these functions to add them to my shell, so i can make directories for example while inside the shell ! Thanks |
|
||||
|
Hi.
The shell (well actually the OS) has programs to create (mkdir), remove (rmdir) and change (cd) directories. Beyond that, I'm not sure what you're asking. What do you mean by "my shell"? And what has C got to do with any of this? |
|
||||
|
Last edited by evantheking; 3 Weeks Ago at 08:17 PM.. |
|
||||
|
If anyone is to help you, you have to start making some sense.
The file you uploaded is 2 bytes in size - about as much use as a trap door in a lifeboat. If you're trying to do something in C why are you talking about shells? And why are you looking at the source code for mkdir, etc., when all you have to do is call it? And what does learning UNIX have to do with writing a C program? |
|
|||||
|
The source code for many home-brewed interactive shells is available on the Internet. You just need to search for it.
If you want to look at the source code for the Bourne shell, it is available at V7 Bourne Shell source code |
|
||||
|
Quote:
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|