LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-29-2002, 01:10 AM   #1
aparna
LQ Newbie
 
Registered: Jan 2002
Posts: 8

Rep: Reputation: 0
linux


hai..
i created one virtual console for my linux platform.what ever command i'm entering in that virtual console i'm executing and storing in side a file for my work .the problem is that"WHEN EVER I TYPE HALF THE COMMAND (eg:'l' for 'ls' command) AND PRESS TAB IT IS NOT LISTING THE WHOLE COMMAND.INSTEAD THE CURSOR IS MOVING ACCORDING TO THE TAB PRESSING..is there any solution for that????
thanking you aparna.
 
Old 01-29-2002, 01:25 AM   #2
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
It sounds like you are using csh or sh as your shell. Type "bash".

For a longer term solution I'm not sure what to do, how did you go about setting up this "virtual console"?
 
Old 01-29-2002, 03:00 AM   #3
aparna
LQ Newbie
 
Registered: Jan 2002
Posts: 8

Original Poster
Rep: Reputation: 0
hello sir..
thanks for your reply.what i meant by virtual console is that i created a c program in which i'm creating a console by my own with home directory and current directory and with a # symbol.i'm using this to find whether the entered person is an intruder or not.
so i have to get the same functionality which is used by all shells to display all commands starting with that letter when we press tab after that particular letter.can you help me
thanking you ...aparna
 
Old 01-29-2002, 03:22 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well then you'd need to write that feature yourself, it's part of bash...
 
Old 01-29-2002, 03:33 AM   #5
webboss
Member
 
Registered: Feb 2001
Location: Badlapur, INDIA
Distribution: debian, Slackware & Small Distros
Posts: 83

Rep: Reputation: 15
Thumbs up a guess to answer U

Hello Aparna,
I guess U can use 'grep' command to grab all the executable commands from bin or sbin folder and associate them with thehalf typed command and the tab sequence.

I hope it may work fine. Though am not a serous C programmer. But I have learned C and currently using linux like anything. Working on getting samba up and running with the shares on linux box. Anyway.
Hope it solves your problem. all the best
Rajesh.
 
Old 01-30-2002, 12:36 AM   #6
aparna
LQ Newbie
 
Registered: Jan 2002
Posts: 8

Original Poster
Rep: Reputation: 0
i used grep to list all the commands .it's working .but the problem is that whem i press the tab the cursor is moving.so it's not giving the real console appearence.in the real console when we press tab it listing commands with out moving the cursor .
how can set that property in my virtual console..
help me plaese....thank you
aparna
 
Old 01-30-2002, 12:54 AM   #7
febisfebi
Member
 
Registered: Nov 2001
Location: cheeseland
Distribution: slackware 8.0
Posts: 52

Rep: Reputation: 15
that is a function of bash, in order to have that in ut program i would suspect u would either somehow integrate bash into it, or write the function yourself.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 10:37 PM
triple boot linux/linux/linux No Windows involved toastermaker Linux - Newbie 12 03-02-2006 10:40 PM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:21 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