English | Magyar
JS ki | CSS ki | Ékezetek ki | HiContrast
Lapozó:  (0 - 1424) 
<== | ==>
Ugrás a végére | Összes megjelenítése | Utolsó oldal
OpenOpera patches | Opera-SSL patches | Opera 12.15 source (Git repository) | Opera 12.15 source (Torrent) | Opera internal pages | Otter Browser Linux x64 - Qt5.15.2/QtWebKit5.602.1 (2024.04.27. 20:05)
OS for MC680x0 | OS for PPC | OS for Sparc64 | besztofbégéaefcé | CSÉNDZSLOG | WebToolz | DDG Shit Filter | Google Shit Filter | Progz | Fast CSS Box | Browser | OS | Agent | Statisztika | BBCode
Monospace font-family: Courier New | Browser default monospace
Email értesítő / Email notification ===> 
Keresés
Σ: 1 post

TCH  (statz) Főfasz
#1, Főfasz (10443)
1595 | #23b3 | ^ | Idézet | Sat, 16 Feb 2013 13:28:33 +01
78.92.*.* Linux x86 Opera Classic Hungary *.pool.t-online.hu
@kemi:
C-ben, ha system-mel meghívok egy shell parancsot, el lehet valahogy téríteni a kimenetét egy streambe?
Hát, ha úgy hívod meg, hogy addig a program futása megáll, amíg a másik fut, akkor úgy kell, hogy a parancs meghívása így nézzen ki, hogy akarmi_program > /tmp/akarmi_program.log aztán utána a végeredményt egyszerűen kiolvasod a fájlból.
Ha process-t indítasz, akkor hozzáférsz mindhárom (stdin, stdout, stderr) csőhöz, de C-ből nem tudom, hogy tudod ezt megtenni. Leírom, hogy megy Pascalban, hátha támpontot ad ahhoz, hogy mit keress:
program mittudomen;

uses process

var
	faszom: tprocess;
	buffer: array of char;
	l: longword;
	hagydmarabbabazdmeg: boolean;

begin
	faszom := tprocess.create(nil);
	faszom.Options := [poUsePipes];
	faszom.commandline := 'kurvaanyad -xy seggem -yz basszameg -zx spectrum'; // :P
	faszom.execute;
	if (not faszom.running) then
	begin
		writeln('Failed to start process.');
		halt;
	end;
	hagydmarabbabazdmeg := false;
	while (not hagydmarabbabazdmeg) do
	begin
		l := proc.stderr.numbytesavailable;
		if (l > 0) then
		begin
			setlength(buffer, l);
			faszom.stderr.read(buffer[0], l);
		end;
		if (buffer[l - 2] + buffer[l - 1] <> 'ok') then
		begin
			hagydmarabbabazdmeg := true;
		end;
	end;
	faszom.terminate;
end.
@kemi:
Kurva lassú a netem, és kénytelen vagyok Opera Minit használni, viszont a fejlécek úgy néznek ki mint explorerbe, vagyis itt se működik a CSS.
Hát az kurwa érdekes, Operában megy, én azt használok.


English | Magyar
JS ki | CSS ki | Ékezetek ki | HiContrast
Lapozó:  (0 - 1424) 
<== | ==>
Ugrás a végére | Összes megjelenítése | Utolsó oldal
OpenOpera patches | Opera-SSL patches | Opera 12.15 source (Git repository) | Opera 12.15 source (Torrent) | Opera internal pages | Otter Browser Linux x64 - Qt5.15.2/QtWebKit5.602.1 (2024.04.27. 20:05)
OS for MC680x0 | OS for PPC | OS for Sparc64 | besztofbégéaefcé | CSÉNDZSLOG | WebToolz | DDG Shit Filter | Google Shit Filter | Progz | Fast CSS Box | Browser | OS | Agent | Statisztika | BBCode
Monospace font-family: Courier New | Browser default monospace
Email értesítő / Email notification ===> 
Keresés

Név: (max 255 byte)

Email: (max 255 byte) Nem kötelező!

Üzenet: (max 65536 kar.) 65536-0=65536




crap_vkn v4.34.0 by TCH
Thx to saxus for the escaped string decoder function (PHP), the realIP function (PHP) & the SQL handle layer (PHP), to thookerov for the int_divide function (PHP), to Jeff Anderson for the getSelText function (JS), to Alex King for the insertAtCursor function (JS), Flood3r for the new CSS styles, Pety for the spamprotection idea and some design and comfort ideas, MaxMind for the IP2Country database, famfamfam for the flags of countries and an unknown PHP programmer for the removeAccents function.



Kecskebaszók ide!