LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 05-13-2008, 02:55 PM   #1
abbie
LQ Newbie
 
Registered: May 2008
Posts: 2

Rep: Reputation: 0
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
 
Old 05-13-2008, 03:11 PM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
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?
 
Old 05-13-2008, 06:28 PM   #3
seraphim172
Member
 
Registered: May 2008
Posts: 101

Rep: Reputation: 15
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 :-)
 
Old 05-13-2008, 10:00 PM   #4
fbianconi
Member
 
Registered: Apr 2008
Location: argentina
Distribution: Arch
Posts: 86

Rep: Reputation: 22
if there is a notion of $PWD in your shell then you should use it. Just guessing.
 
Old 05-14-2008, 01:34 AM   #5
i.you
Member
 
Registered: Oct 2006
Posts: 46

Rep: Reputation: 15
If you design it by C language just use a system call, chdir() or fchdir().

the usage :

<QUOTE>man chdir</QUOTE>
 
Old 05-14-2008, 06:45 AM   #6
terrio
LQ Newbie
 
Registered: Jan 2007
Location: Halifax, NS
Distribution: Linux Mint 11
Posts: 29

Rep: Reputation: 15
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.
 
Old 05-17-2008, 04:35 AM   #7
abbie
LQ Newbie
 
Registered: May 2008
Posts: 2

Original Poster
Rep: Reputation: 0
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
 
Old 05-17-2008, 05:39 AM   #8
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,331
Blog Entries: 55

Rep: Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531Reputation: 3531
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

Last edited by unSpawn; 05-17-2008 at 06:27 AM.
 
Old 05-17-2008, 07:46 AM   #9
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 50
Quote:
abbie

and im sure i earn 10 times more than you small guys do
Thats good, that just gives your mates lover more money to spend.

Last edited by mrrangerman; 05-17-2008 at 07:53 AM.
 
Old 05-17-2008, 08:31 PM   #10
seraphim172
Member
 
Registered: May 2008
Posts: 101

Rep: Reputation: 15
abbie, abbie, abbie

abbie,

Quote:
i am the Manager IT operations at Efroze , and im sure i earn 10 times more than you small guys do
Well, how much do you earn actually? I'm just curious to know how small we all are and what the current rates for arrogance are.

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?
 
Old 05-18-2008, 02:25 PM   #11
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell Programming manolakis Programming 5 05-20-2008 05:20 AM
Shell programming pawarsac Linux - Newbie 4 08-05-2006 05:43 AM
Shell Programming aman_goel Linux - General 1 11-25-2004 09:50 PM
shell programming athenerx Programming 1 10-28-2001 05:33 AM


All times are GMT -5. The time now is 06:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration