• Welcome to TUKE FÓRUM - Fórum pre Å¡tudentov Technickej Univerzity v KoÅ¡iciach.
 

zadanie z OS: unix

Started by hlsman, 29.12.2006, 06:01:47

« predchádzajúce - ïal¹ie »

hlsman

juhuuuu mne to ide teraz odruky :D
uz mam spraveny uplne proc_p1, proc_p2, proc_t a z jednej strany proc_d :)
uz idem na TCP a UDP ;)

cize ide mi to :)

micRo

vam uz nacisto asi j*be z tej skoly  :whacko: :huh2:
I just know one thing, I won't give up!!

Raleon

Quote from: micRo on  03.01.2007, 21:19:58
vam uz nacisto asi j*be z tej skoly  :whacko: :huh2:

ta, jebe mi zo ztoho programovania. Kodil som rad... :bananawrite: az doteraz...  :ohmigod:


There is no such bad temper that can not be fixed with some good wine.

Raleon

#28
Quote from: hlsman on  03.01.2007, 21:18:16
juhuuuu mne to ide teraz odruky :D
uz mam spraveny uplne proc_p1, proc_p2, proc_t a z jednej strany proc_d :)
uz idem na TCP a UDP ;)

cize ide mi to :)

Ta ma jebne.
zrobim
pipe(R1);
pipe(R2);

a pokym neposlem ako argv[4]=R2[1]  tak hlasi cghybu ze nevie otvorit R2 na zapis. to je normal.
ale furt mam  argv[3]=R1[0]   a hlasi chybu ze nevie otovrit R1 na citanie.

{edit}

Po siestich hodinach nadavania, a mlatenia klavesnice, som prisiel na to. teraz prisla ulava, a trapenia nad tym, ako spravne zapisat pre ten nechapavy jazyk C, co chcem.  Neviem, kto ten C ma rad, ale ja uz urcite ne  :j_angry:


There is no such bad temper that can not be fixed with some good wine.

hlsman

hmm este raz k tomu predavaniu parametrov
v zadani spravis cosi take:

char arg[10];
sprintf(arg1, "%d", R1[0]); << to je pre proc_pr argument s deskriptorom citacieho konca rury

potom spustis dany proces napriklad pomocou execlp takto:

execlp("./proc_pr", "proc_pr", arg1, arg2, arg3, arg4, NULL);
//ma mat 4 parametre, s kazdym spravis to sprintf(...

potom, vo svojom procese musis opat ten parameter konvertovat na cislo, integer

int pipe_des = atoi(argv[1]); //takto v proc_p1 napriklad

a az teraz mozes v tom novom procese pouzit read(pipe_des ...

Ing. nemtom

ja mam rad C, a preto nerobim unix zadanie, aby som nedopadol tak isto
brix will be shat

mrkvy

A ja C nemam rad a preto nerobim zadanie, aby sa mi nezacal pacit...  :emot-LMAO: co vlastne ani nehrozi... :) Tesim na javu... :D
(\__/)
(O.o )
(> < ) To understand is to be, but to be taken, requires a state of trance.......  ;)


mrkvy :zuzka: svoj vodicak :D

Raleon

Quote from: hlsman on  04.01.2007, 00:39:38
Rady uja hlsmana :)

JJ, diky, to som mal aj ja, len chyba bola tam, ze pomocou sprintf som prevadzal cisla do jedineho bufra, a zrobil som potom nieco take

sprintf(buffer,"%d",cislo1)
chargv[3]=buffer;
sprintf(buffer,"%d",cislo2)
chargv[4]=buffer;

a teda, som s tym len pointer som predava na to same pametove miesto, a nie hodnotu, teda som prepisal aj chargv[3] na hodnotu cislo2.
a preto mi necelo otvorit to R1 na citanie (pretoze deskriptor cislo2 je na zapis)

6 hodin, 6 hodin som to kukal, a nadaval. Furt zrobim nejaku volovinu, co ne a nevsimnem...


There is no such bad temper that can not be fixed with some good wine.

hlsman

KONEC
zadanie spravene, ten koniec uz len tak dokopany ale ide to.
som totalne nasrany.  :03:
poslednu chybu som opravil tak, ze som zmazal paru riadkov a napisal uplne to iste este raz. tipnite si co sa stalo ... zrazu to IDE!!!  :emot-LMAO: :emot-LMAO: :emot-LMAO: :emot-LMAO:

Raleon

Quote from: hlsman on  04.01.2007, 02:16:45
KONEC
zadanie spravene, ten koniec uz len tak dokopany ale ide to.
som totalne nasrany.  :03:
poslednu chybu som opravil tak, ze som zmazal paru riadkov a napisal uplne to iste este raz. tipnite si co sa stalo ... zrazu to IDE!!!  :emot-LMAO: :emot-LMAO: :emot-LMAO: :emot-LMAO:

con-gratulations...

aj uz mam p1 a aj p2!!! :)


There is no such bad temper that can not be fixed with some good wine.

micRo

a teraz ONE KVESČN :D kto bude ochotny hodit unix na TUKE FTP: york.dreamhost.com  :thumbsup:
I just know one thing, I won't give up!!

Ing. nemtom

lol, na tvojom mieste by som s tym bars neratal
brix will be shat

Raleon

Quote from: micRo on  04.01.2007, 05:49:59
a teraz ONE KVESČN :D kto bude ochotny hodit unix na TUKE FTP: york.dreamhost.com  :thumbsup:

Ani ja by som s tym neratal, a mozem ta sklamat, ani ja tam to nehodim. A to z jedineho dovodu:
Existuje niekolko ludi, kotry by to vzali, neprerobili by dost dobre a hodili by na upload zadania. Prislo by kontrola, a aj samotny autor by z toho mal prusser.


There is no such bad temper that can not be fixed with some good wine.

Raleon

Quote from: hlsman on  04.01.2007, 02:16:45
KONEC
zadanie spravene, ten koniec uz len tak dokopany ale ide to.

aj ja som fertigh.  Chvalabohu. Este len tu debilnu dokumentaciu, a je to.

Note: Popozerajte sa na Hron-e .  Niektory studenti pozabudali zmenit pristupove prava  :thumbsup:
Nechcem tym podporit kradnutie zadani, ale moze vam zist, ked chcete vidiet, ako to ini robili.


There is no such bad temper that can not be fixed with some good wine.

mrkvy

(\__/)
(O.o )
(> < ) To understand is to be, but to be taken, requires a state of trance.......  ;)


mrkvy :zuzka: svoj vodicak :D

Raleon

Kuuuuurna

ja idem, a sa odstrelim. To musi byt FEI, aby to neso vykompilovat pod hronom  :huh2:
(vypisuje ze undeclared on this scope ci co... po pridani vsetkych moznych headerov zase vypisuje nejake blbosti...  :hammer: )
stracam sily


kolky uz mate toto debilne zadanie, fungujuce aj pod hron?


There is no such bad temper that can not be fixed with some good wine.

maTo


checky

Mne vypisuje hron take nieco :
Your account has expired; please contact your system administrator >:(

Raleon

Quote from: checky on  06.01.2007, 16:59:35
Your account has expired; please contact your system administrator
neprijemne....


There is no such bad temper that can not be fixed with some good wine.

checky

jj, som zistil ze  heslo na hrone plati 90 dni, potom straca platnost.

wlade

Najde sa tu niekto kto ma zadanie UNIX hotove a vedel by mi ho predat ?  :j_undecided:

Urcite sa dohodneme (suma, prerabka kodu atd) tu na fore alebo na PM  :thumbs-up:
I'm not normal, but paranormal abnormal...
Full series: X-Files & Masters Of Horror :D

HC Košice 4ever (B17-4-1) :buttrock:

Dawn of the FEI:
When there's no more room in FEI, the dead students will walk the earth...

mrkvy

Quote from: Raleon on  06.01.2007, 07:31:16
kolky uz mate toto debilne zadanie, fungujuce aj pod hron?
Ja tiz ne..  :emot-dance: ;)
Quote from: checky on  06.01.2007, 17:04:16
jj, som zistil ze  heslo na hrone plati 90 dni, potom straca platnost.
loool.. a je mozne aby mi prepadlo heslo dva krat?? :D :D :D
(\__/)
(O.o )
(> < ) To understand is to be, but to be taken, requires a state of trance.......  ;)


mrkvy :zuzka: svoj vodicak :D

Johny Bravo

no takze moj login uz bude invalid zajtra.. komu treba napisat?

micRo

no mne pohodick nevypisuje nic :DD asi profaci vedeli ze so mnou to take lahke nebude :D :D :D
I just know one thing, I won't give up!!

Raleon

Quote from: Johny Bravo on  07.01.2007, 06:21:01
no takze moj login uz bude invalid zajtra.. komu treba napisat?

TREBA VYMIENAT HESLA ASI V MESACNYCH INTERVALOCH!!!!


There is no such bad temper that can not be fixed with some good wine.