LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-22-2003, 05:14 AM   #1
GŠutama
Member
 
Registered: Jun 2003
Location: Tokyo
Distribution: Gentoo
Posts: 78

Rep: Reputation: 15
incorperate Bash as command-line in program


Hi,

I am writing a simple app for learning network programming with C++.
I would like to use Bash as internal command line tool.
That is when I connect to my little app I would like a Bash shell to start and handle all the commands.
The only problem is that I would like to explicitly specify what commands Bash shall accept. So basically I am looking for some of the features that Bash offers like Tab-completion, Ctrl-(some Keys), History ...
But I would like Bash not call external programs but rather, use functions that I have specified.

Does anyone have an idea of how to do this.
(Do you understand what I would like to do? I know I don't explain it very well.)

/Thanks
 
  


Reply



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
BASH: read every line in the files and use the line as parameters as another program tam3c36 Programming 10 12-07-2010 01:42 PM
Bash Script, no new line for echo command jorisb Linux - General 5 11-05-2005 12:08 AM
bash shell command line expansion hansi umayangan Linux - General 2 03-13-2005 11:31 AM
bash command line smtp mail nutthick Programming 1 01-23-2005 02:23 PM
Viewing program messages when program isn't run from command line? Locura Linux - Software 1 09-27-2003 08:19 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:54 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
Open Source Consulting | Domain Registration