i can't find an example.. could you give me one pls? :)
Type: Posts; User: TuXaKoS
i can't find an example.. could you give me one pls? :)
thx for your answer, but how i write?
Hi,
How can i use the popen to write something into the application that i call? The application requires to write "y" to continue. :/
The operating system is linux.. my mistake.. :$
Hello,
I'm writing a c program and i want to open some files using output*.cap.
When i use "output*.cap" the compiler doesn't recognize * as wildcard character.
How can i write "output*.cap"...
Ops sorry.. in Linux.
Hello,
I want to execute a shell command and after a while terminate it. Is it posible? and how?
if you want the bass player you have to help me :P. I'm sure there must be a way to bypass this s!@$!$@!.. :/
i don't want to change the source of airodump :/ i need it as it comes with aircrack :/ any other solution? maybe if i use ioctl on my code?
MK27 here's the code from airodump source
/* update the window size */
if( ioctl( 0, TIOCGWINSZ, &ws ) < 0 )
{
ws.ws_row = 25;
...
yes, nothing changed. i just make a gui for it :)
yes, it use ioctl at the source of airodump :/ but i can't change it from there because i need to use the airodump as it comes with aircrack-ng :/ any other idea?
hm.. i don't think that COLUMNS is the problem. :/ i use setenv to change it to 125. I use getenv before and after popen and it's still 125 but the output is only 80. :/
i creater a buffer, char...
Yes, i have the source no command for formating :/ pff i need the whole output :/
Noep, nothing changed :/ maybe the problem is at the buffer?
i change the columns to 50. I use echo $COLUMNS it returns 50. I run the airodump-ng mon0 > tmp.txt and the columns change to 80 :/
could you give me an example? it's 2 am here in Greece, my mind myscles don't work at all :/
same thing. if the terminal is unmaximized i only get thom :/ how can i fix it? i want the whole output
i use this :
fp2 = popen("/bin/bash -c 'airodump-ng mon0 2>&1' ", "r");
setvbuf ( fp2, NULL, _IOLBF, NULL);
i read with this :
fgets(path, PATH_MAX, fp2);
Hello,
I use fp = popen("/bin/bash -c command" , "r") to read the output of the command.
The problem is that i don't take the whole output, i take only the output that an unmaximize shell window...
Nothing happens it shows the gui and just waiting for a signal. A button clicked or something like that. That's how glade works..
I don't have a main loop, the gui works only with signals i think :/
how? i mean the application that i call using popen is endless, every second it gives the avalaible wireless networks and some informations about them ( power, encryption, etc) i just want to take...
I see.. :/ but i want the gui to works. I have an endless stream, I want to take line by line from the stream and put it into a treeview inside the gui. Really i don't know how is that possible :/...
Yes , but the gui becomes gray and i cant clicked anything. It freeze.
could you give me an example? maybe using the code i paste it above or something like that? :/