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. |
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"? |
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 |
well then you'd need to write that feature yourself, it's part of bash...
|
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. |
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 |
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.
|
All times are GMT -5. The time now is 06:42 AM. |