LinuxQuestions.org
Help answer threads with 0 replies.
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


Reply
  Search this Thread
Old 10-09-2004, 03:40 AM   #1
twista
LQ Newbie
 
Registered: Oct 2004
Distribution: mandrake 9.1
Posts: 1

Rep: Reputation: 0
ho to implement a minishell (bash)


Hi to everybody! i got a problem...
i have to realize a minishell that read a row digited (with "read" command and REPLY variable), and execute all commands i digit (if the row is a real command... ).
If row that i insert starts with "!" the minishell must act in different ways: it depends by the second caracter digited (if it is "!" or "n" or "?").
To memorize commands i insert i got to use HISTORY variable; when minishell complete his work, HISTORY must be saved on a file.

If anybody can help me, i'll be thankful. I've just entered the shell scripting world...so i'm just a dummy
Thanks again!

Twista
 
Old 10-09-2004, 03:50 AM   #2
sir_nawaz959
LQ Newbie
 
Registered: Oct 2004
Posts: 2

Rep: Reputation: 0
Hi,
I think u can use system calls if u r using c or c++....in that u have to include some header files like <sys/unistd.h> <sys/types.h> <sys/fcntl.h> etc...
 
  


Reply


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
Implement cluster with Tomcat 5 shadow11 Linux - Networking 0 10-10-2005 06:41 PM
Shell implement in c SatYr_84 Programming 8 10-06-2005 01:44 AM
IPSEC To implement VPN UltraSoul Solaris / OpenSolaris 7 08-22-2005 03:47 AM
How to implement multithreading in Socket ??? ponka128 Programming 5 05-23-2004 11:07 AM
How to implement a queuing system? aleet2600 Programming 10 05-13-2004 12:03 AM


All times are GMT -5. The time now is 08:25 PM.

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