Search Results

Search: Posts Made By: vanid
Forum: Programming 05-13-2011
3,124
Posted By vanid
Readline Programming
Actually here I post my code till where I have achieved command line completion,history.


/* fileman.c -- A tiny application which demonstrates how to use the
GNU Readline library. This...
Forum: Programming 05-12-2011
3,124
Posted By vanid
Readline Programming
Yeah exactly iam trying to develop for an application same like GDB. So if you can say how the gdb works with source code then that could may help me out. Here for my application i want to develop...
Forum: Programming 05-12-2011
3,124
Posted By vanid
Readline Programming
Hi,

Thank you so much for a usefull solution. Exactly this is what iam looking for but this is here for bash right? so now i want it using readline. Yes the same readline what i mean...which linux...
Forum: Programming 05-11-2011
3,124
Posted By vanid
Readline Probelm
Hi,

actually for command line auto completion i knew that using shell.....but we see interactive command line args completion can done by tab key using gnu readline library...up to this i knew but...
Forum: Programming 05-10-2011
3,124
Posted By vanid
Readline programming
Hi,

I am new to using readline library to my application. Please I want to no how to write code for command line switches(options), i.e when i press tab the option of command as to change.
eg:
...
1,064
Posted By vanid
Code for C
Hi, I need to know how we can write C code for command line options with each time tab pressing. i.e
when i type "ls -" in command prompt it should show all possible list starting with "-" and also...
3,160
Posted By vanid
log file problem
Thank you so much for the answer. Actually all i have tried but i dont fine any solution iam not able to remove those characters. I am using expect language and if any other options please let me...
3,160
Posted By vanid
log file problem
Thanks to both of you. actually
here what i tried is :

sed -e 's/^\[23\;80H \[24\;1H//;/^$/d;G' /home/file.logreponse:

invalid command name "sed"
while executing
"sed -e 's/^\[23\;80H...
3,160
Posted By vanid
log file problem
I tried it but when writing for expect we need to provide "exec" cmd before this sed command right? if do so its not working here what iam doing:
exec sed {-e s/^\[23\;80H \[24\;1H//}...
3,160
Posted By vanid
log file problem
Hi,

I have a problem with my logfile. I am redirecting my output to log file and when iam viewing as text doc it is looking with some nonsense characters...please do help me on this .thank you.
...
24,036
Posted By vanid
Thank you. I will try it but i didnt get the...
Thank you.

I will try it but i didnt get the line you said " I suppose you could redirect it into expect too." please can you eleborate more clearly as iam very new to expect and as well to...
24,036
Posted By vanid
expect minicom
Hi,

I am new to using minicom. I want how to write a expect script for minicom login? I wrote a code but its not acting what iam expecting. here I have my code:

#!/usr/bin/expect

set fd [...
15,994
Posted By vanid
I have seen it but their i didt find how to write...
I have seen it but their i didt find how to write code for only I got information about minicom settings. I want somthing like code below:
#!/usr/bin/expect

set fd [ open /dev/ttyUSB1 { RDWR...
15,994
Posted By vanid
running scripts in minicom
Hi,

I am new to use minicom. I want script to run on minicom with username and password as automated.(Expect). please could anyone suggest the sample code for it.

Thanks in advance
Forum: Ubuntu 03-18-2011
1,614
Posted By vanid
reply
here is my code:

#!/usr/local/bin/expect —f
proc insertchar {c} {
global password
set password [linsert $password \
[rand [expr 1+[llength $password]]] $c]
}
set _ran 5
proc rand {n} {...
Forum: Ubuntu 03-18-2011
1,614
Posted By vanid
Firstly thank you so much for replying.... ...
Firstly thank you so much for replying....
actually i am new to expect:

I am able to execute the commands automatically using expect for telnet session.

Now my requirement is:
as of now...
Forum: Ubuntu 03-18-2011
1,614
Posted By vanid
Random insertion of letters to password
Hi,,

Here i have attached a text file where iam facing problem in my code.

Please read the file and help me out of this issue..


Thanks in advance
Forum: Ubuntu 03-18-2011
4,484
Posted By vanid
expect script for random password and random commands
Hi

I am new to expect. Please if any one can help on my issue its really appreciable. here is my issue:

I want expect script for random passwords and random commands generation.

please can...
Showing results 1 to 18 of 18

 
All times are GMT -4. The time now is 01:00 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy