Shell Programming
Hi,
I have actually designed a shell of my own , and im stuck with a big problem of how to implement the "CD" command. Can anyone please help me out with the code which i can add to my program to have the CD command also functioning Please help me as soon as possible , im in urgent need Thanks |
Welcome to LQ!!
You'll need to explain why this is urgent.....If it is homework, then be aware that this is not why we are here. You also need to show what you have tried--so that we know where you are on the learning curve. Have you studied the source code for ---eg--- BASH? |
what programming environment do you use?
How did you implement your shell? What programming language?
A piece of Cobol code will not help you much if your working in Fortran :-) |
if there is a notion of $PWD in your shell then you should use it. Just guessing.
|
If you design it by C language just use a system call, chdir() or fchdir().
the usage : <QUOTE>man chdir</QUOTE> |
Further i.you's post, you could also look into using the following [execl, execlp, execv], that is if this homework assignment was to be done using C. :)
|
I thought this is somewhere where people are ready to help , but im sorry to say that you guys think that you are too technical and new ones cannot match with you.
This is not a home assignment , i was doing this as a hobby , and thanks to some good friends im easily done with it and i dont need your stupid replies anymore thank you for wasting my time and one more thing , i am the Manager IT operations at Efroze , and im sure i earn 10 times more than you small guys do |
You are completely out of line
@Abbie: you just did the "best" thing to promote the company you work for in terms of professional conduct and trustworthiness. You're a very new LQ member and you never took the time to help others. That isn't mandatory but it shows your grasp of things like reciprosity, what kind of LQ Community member you would want to be. Your thread received replies, yet you never took the time to acknowledge each of them properly. That isn't mandatory but it shows what kind of person you are in terms of appreciation and netiquette. You are your own master. Nobody wastes your time but you. That wouldn't be necessary either if you would have shown you posess rudimentary knowledge of what you're talking about, how to ask questions properly and maturity.
As moderator I ask of you to retract your statement to acknowledge the fact you are completely out of line immediately. //Until this gets resolved one way or the other I would appreciate it if all others keep from posting replies. TIA |
Quote:
|
abbie, abbie, abbie
abbie,
Quote:
Other than that, we still don't know how you implemented your hobby shell. Apparently you're the Paris Hilton of the IT Industry - earning a lot of money and still having time to reinvent a shell. Is it Open Source? Can we download it somewhere to have a look at your expertise? |
And closed. Pity that some folk can't read, or feel they
have to choose to ignore the mods messages in a thread, too. Cheers, Tink |
All times are GMT -5. The time now is 02:29 PM. |