Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 10-09-2004, 03:40 AM   #1
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 i'm just a dummy
Thanks again!

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

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


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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:48 PM.

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