Sada je: 02 pro 2020, 23:24.
Rasprave u vezi Linux aplikacija.

Moderator/ica: Moderatori/ce

Evo ga sve linije, ono maloprije sam radio make ali sa zaključanim fajlovima

Kod: Označi sve
romcal-v6 # make
cc    -c -o printweb.o printweb.c
cc    -c -o printtxt.o printtxt.c
printtxt.c: In function ‘printtxt1’:
printtxt.c:50:7: warning: incompatible implicit declaration of built-in function ‘sprintf’ [enabled by default]
printtxt.c:57:7: warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default]
printtxt.c:64:7: warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default]
cc    -c -o printrtf.o printrtf.c
printrtf.c: In function ‘printrtf’:
printrtf.c:66:7: warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default]
printrtf.c:83:7: warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default]
printrtf.c:127:7: warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default]
cc    -c -o printpsg.o printpsg.c
printpsg.c: In function ‘printpsg’:
printpsg.c:71:7: warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default]
printpsg.c:96:7: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
cc    -c -o printpsc.o printpsc.c
printpsc.c: In function ‘printpsc’:
printpsc.c:65:6: warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default]
printpsc.c:86:6: warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default]
printpsc.c:112:6: warning: incompatible implicit declaration of built-in function ‘free’ [enabled by default]
cc    -c -o printmon.o printmon.c
cc    -c -o printics.o printics.c
printics.c: In function ‘printics’:
printics.c:68:6: warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default]
cc    -c -o printhtm.o printhtm.c
printhtm.c: In function ‘printhtm’:
printhtm.c:57:4: warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default]
cc    -c -o printcal.o printcal.c
cc    -c -o version.o version.c
cc    -c -o doydate.o doydate.c
cc    -c -o rtfrow.o rtfrow.c
cc    -c -o montail.o montail.c
cc    -c -o splitstr.o splitstr.c
cc    -c -o psformat.o psformat.c
cc    -c -o mkhead.o mkhead.c
mkhead.c: In function ‘main’:
mkhead.c:46:29: warning: comparison between pointer and integer [enabled by default]
cc  -o mkhead mkhead.o
cat monheadR.hdr | ./mkhead | \
      sed 's/__MKHEAD__/monheadR/' | \
      sed 's/__YEAR__/%d/' | \
      sed 's/__MONTH__/%s/' > monheadR.h
cat monheadH.hdr | ./mkhead | \
      sed 's/__MKHEAD__/monheadH/' | \
      sed 's/__YEAR__/%d/' | \
      sed 's/__MONTH__/%s/' > monheadH.h
cc    -c -o monhead.o monhead.c
cc    -c -o init.o init.c
cc    -c -o lent.o lent.c
cc    -c -o center.o center.c
cc    -c -o ord2.o ord2.c
cc    -c -o ord1.o ord1.c
cc    -c -o easter.o easter.c
cc    -c -o leapyear.o leapyear.c
cc    -c -o eastdate.o eastdate.c
cat calheadR.hdr | ./mkhead | \
      sed 's/__MKHEAD__/calheadR/' | \
      sed 's/__YEAR__/%d/' | \
      sed 's/__MONTH__/%s/' > calheadR.h
cat calheadH.hdr | ./mkhead | \
      sed 's/__MKHEAD__/calheadH/' | \
      sed 's/__YEAR__/%d/' | \
      sed 's/__MONTH__/%s/' > calheadH.h
cat calheadG.hdr | ./mkhead | \
      sed 's/__MKHEAD__/calheadG/' | \
      sed 's/__YEAR__/%d/' | \
      sed 's/__MONTH__/%s/' > calheadG.h
cat calheadC.hdr | ./mkhead | \
      sed 's/__MKHEAD__/calheadC/' | \
      sed 's/__YEAR__/%d/' | \
      sed 's/__MONTH__/%s/' > calheadC.h
cc    -c -o calhead.o calhead.c
cc    -c -o datestr.o datestr.c
cc    -c -o gencel.o gencel.c
gencel.c: In function ‘gencel’:
gencel.c:40:10: warning: conflicting types for built-in function ‘malloc’ [enabled by default]
cc    -c -o advent.o advent.c
cat caltailR.hdr | ./mkhead | \
      sed 's/__MKHEAD__/caltailR/' | \
      sed 's/__YEAR__/%d/' | \
      sed 's/__MONTH__/%s/' > caltailR.h
cat caltailH.hdr | ./mkhead | \
      sed 's/__MKHEAD__/caltailH/' | \
      sed 's/__YEAR__/%d/' | \
      sed 's/__MONTH__/%s/' > caltailH.h
cc    -c -o caltail.o caltail.c
cc    -c -o doy.o doy.c
cc    -c -o xmas2.o xmas2.c
cc    -c -o xmas1.o xmas1.c
cc    -c -o parse.o parse.c
parse.c: In function ‘parse’:
parse.c:133:6: warning: incompatible implicit declaration of built-in function ‘memset’ [enabled by default]
parse.c:210:3: warning: incompatible implicit declaration of built-in function ‘memset’ [enabled by default]
cc    -c -o mkfix.o mkfix.c
mkfix.c: In function ‘main’:
mkfix.c:71:7: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default]
mkfix.c:80:7: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default]
mkfix.c:191:4: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default]
cc  -o mkfix mkfix.o
./mkfix
cc    -c -o proper.o proper.c
cc    -c -o romcal.o romcal.c
romcal.c: In function ‘main’:
romcal.c:63:7: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default]
romcal.c:106:4: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default]
cc  -o romcal printweb.o printtxt.o printrtf.o printpsg.o printpsc.o printmon.o printics.o printhtm.o printcal.o version.o doydate.o rtfrow.o montail.o splitstr.o psformat.o monhead.o init.o lent.o center.o ord2.o ord1.o easter.o leapyear.o eastdate.o calhead.o datestr.o gencel.o advent.o caltail.o doy.o xmas2.o xmas1.o parse.o proper.o romcal.o
cc -DMAINPROG eastdate.c -o eastdate
eastdate.c: In function ‘main’:
eastdate.c:91:7: warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default]
eastdate.c:92:7: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default]
eastdate.c:96:7: warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default]
eastdate.c:99:7: warning: incompatible implicit declaration of built-in function ‘printf’ [enabled by default]
eastdate.c:101:4: warning: incompatible implicit declaration of built-in function ‘exit’ [enabled by default]
Avatar
Postovi: 63
Postovi: 63
Pridružen/a: 09 srp 2008, 12:06
Podijelio/la zahvalu: 2 puta
Primio/la zahvalu: 0 puta
sada sam opet sve ponovno, od downloada pa do unosa ovoga retka išao sa sudo. Ii nešto se dogodilo. Kada upišem nakon svega u terminal
Kod: Označi sve
romcal
onda mi izbaci kalendar ali u terminalu ovako, evo samo dio s kojim neznam što bih radio
Kod: Označi sve
Opt. Mem.                Thu Aug 18, 2011                   Green 
                       Jane Frances de Chantal, Rel

    Opt. Mem.                Fri Aug 19, 2011                   Green 
                               John Eudes, P

    Memorial                 Sat Aug 20, 2011                   White 
                              Bernard, Ab & D

    Sunday                   Sun Aug 21, 2011                   Green 
                   Twenty-First Sunday of Ordinary Time

    Memorial                 Mon Aug 22, 2011                   White 
                             Queenship of Mary

    Opt. Mem.                Tue Aug 23, 2011                   Green 
                              Rose of Lima, V

    Feast                    Wed Aug 24, 2011                   Red   
                              Bartholomew, Ap

    Opt. Mem.                Thu Aug 25, 2011                   Green 
                    Louis of France; Joseph Calasanz, P

    Weekday                  Fri Aug 26, 2011                   Green 
             Friday of the Twenty-First Week of Ordinary Time

    Memorial                 Sat Aug 27, 2011                   White 
                                  Monica

    Sunday                   Sun Aug 28, 2011                   Green 
                   Twenty-Second Sunday of Ordinary Time

    Memorial                 Mon Aug 29, 2011                   Red   
                     Beheading of John the Baptist, M

    Weekday                  Tue Aug 30, 2011                   Green 
            Tuesday of the Twenty-Second Week of Ordinary Time

    Weekday                  Wed Aug 31, 2011                   Green 
           Wednesday of the Twenty-Second Week of Ordinary Time



    Weekday                  Thu Sep  1, 2011                   Green 
            Thursday of the Twenty-Second Week of Ordinary Time

    Weekday                  Fri Sep  2, 2011                   Green 
             Friday of the Twenty-Second Week of Ordinary Time

    Memorial                 Sat Sep  3, 2011                   White 
                         Gregory the Great, Po & D

    Sunday                   Sun Sep  4, 2011                   Green 
                   Twenty-Third Sunday of Ordinary Time

    Weekday                  Mon Sep  5, 2011                   Green 
             Monday of the Twenty-Third Week of Ordinary Time

    Weekday                  Tue Sep  6, 2011                   Green 
             Tuesday of the Twenty-Third Week of Ordinary Time

    Weekday                  Wed Sep  7, 2011                   Green 
            Wednesday of the Twenty-Third Week of Ordinary Time

    Feast                    Thu Sep  8, 2011                   White 
                               Birth of Mary

    Memorial                 Fri Sep  9, 2011                   White 
                              Peter Claver, P

    Weekday                  Sat Sep 10, 2011                   Green 
            Saturday of the Twenty-Third Week of Ordinary Time

    Sunday                   Sun Sep 11, 2011                   Green 
                   Twenty-Fourth Sunday of Ordinary Time

    Weekday                  Mon Sep 12, 2011                   Green 
             Monday of the Twenty-Fourth Week of Ordinary Time

    Memorial                 Tue Sep 13, 2011                   White 
                          John Chrysostom, B & D

    Feast                    Wed Sep 14, 2011                   Red   
                           Triumph of the Cross

    Memorial                 Thu Sep 15, 2011                   White 
                            Our Lady of Sorrows

    Memorial                 Fri Sep 16, 2011                   Red   
                   Cornelius, Po & M and Cyprian, B & M

    Opt. Mem.                Sat Sep 17, 2011                   Green 
                         Robert Bellarmine, B & D

    Sunday                   Sun Sep 18, 2011                   Green 
                   Twenty-Fifth Sunday of Ordinary Time

    Opt. Mem.                Mon Sep 19, 2011                   Green 
                              Janurius, B & M

    Memorial                 Tue Sep 20, 2011                   Red   
            Andrew Kim, P & M, Paul Chong, M, & companions, Mm

    Feast                    Wed Sep 21, 2011                   Red   
                         Matthew, Ap & Evangelist

    Weekday                  Thu Sep 22, 2011                   Green 
            Thursday of the Twenty-Fifth Week of Ordinary Time

    Weekday                  Fri Sep 23, 2011                   Green 
             Friday of the Twenty-Fifth Week of Ordinary Time

    Weekday                  Sat Sep 24, 2011                   Green 
            Saturday of the Twenty-Fifth Week of Ordinary Time

    Sunday                   Sun Sep 25, 2011                   Green 
                   Twenty-Sixth Sunday of Ordinary Time

    Opt. Mem.                Mon Sep 26, 2011                   Green 
                           Cosmas and Damian, Mm

    Memorial                 Tue Sep 27, 2011                   White 
                            Vincent de Paul, P

    Opt. Mem.                Wed Sep 28, 2011                   Green 
               Wenceslaus, M; Lawrence Ruiz & companions, Mm

    Feast                    Thu Sep 29, 2011                   White 
                 Michael, Gabriel, and Raphael, Archangels

    Memorial                 Fri Sep 30, 2011                   White 
                               Jerome, P & D



    Memorial                 Sat Oct  1, 2011                   White 
                       Theresa of the Child Jesus, V

    Sunday                   Sun Oct  2, 2011                   Green 
                  Twenty-Seventh Sunday of Ordinary Time

    Weekday                  Mon Oct  3, 2011                   Green 
            Monday of the Twenty-Seventh Week of Ordinary Time

    Memorial                 Tue Oct  4, 2011                   White 
                          Francis of Assisi, Rel

    Weekday                  Wed Oct  5, 2011                   Green 
           Wednesday of the Twenty-Seventh Week of Ordinary Time

    Opt. Mem.                Thu Oct  6, 2011                   Green 
                   Bruno, P; Bl. Marie Rose Durocher, V

    Memorial                 Fri Oct  7, 2011                   White 
                          Our Lady of the Rosary

    Weekday                  Sat Oct  8, 2011                   Green 
           Saturday of the Twenty-Seventh Week of Ordinary Time

    Sunday                   Sun Oct  9, 2011                   Green 
                   Twenty-Eighth Sunday of Ordinary Time

    Weekday                  Mon Oct 10, 2011                   Green 
             Monday of the Twenty-Eighth Week of Ordinary Time

    Weekday                  Tue Oct 11, 2011                   Green 
            Tuesday of the Twenty-Eighth Week of Ordinary Time

    Weekday                  Wed Oct 12, 2011                   Green 
           Wednesday of the Twenty-Eighth Week of Ordinary Time

    Weekday                  Thu Oct 13, 2011                   Green 
            Thursday of the Twenty-Eighth Week of Ordinary Time

    Opt. Mem.                Fri Oct 14, 2011                   Green 
                            Callistus I, Po & M

    Memorial                 Sat Oct 15, 2011                   White 
                          Teresa of Avila, V & D

    Sunday                   Sun Oct 16, 2011                   Green 
                   Twenty-Ninth Sunday of Ordinary Time

Avatar
Postovi: 63
Postovi: 63
Pridružen/a: 09 srp 2008, 12:06
Podijelio/la zahvalu: 2 puta
Primio/la zahvalu: 0 puta
I to ti je to !

Mozes provjeriti sto ces s time izdajuci komandu:
Kod: Označi sve
romcal --help

Na primjer, mozes output izbaciti u html kao sto sam ja napravio u onom privitku gore.
When you're a kid and you wanna go "Weee !", but you ain't got drugs yet ... You hold out for your life, hold on to your little GONADS ... and STRIFE.
Avatar
Postovi: 910
Postovi: 910
Pridružen/a: 12 svi 2010, 07:57
Podijelio/la zahvalu: 0 puta
Primio/la zahvalu: 13 puta
OS: linux
a daj molim te primjer, nisam ja baš čovjek od retka od CLI.
Svašta sam upisivao ali ništa snimi, samo izlista unutar terminala nigdje se ne pojavljuje nekakav file.

ja upišem ovo
Kod: Označi sve
romcal-v6 # romcal -H kalend2012 2012
Avatar
Postovi: 63
Postovi: 63
Pridružen/a: 09 srp 2008, 12:06
Podijelio/la zahvalu: 2 puta
Primio/la zahvalu: 0 puta
gdje to ode?
Avatar
Postovi: 63
Postovi: 63
Pridružen/a: 09 srp 2008, 12:06
Podijelio/la zahvalu: 2 puta
Primio/la zahvalu: 0 puta
josun je napisao/la:gdje to ode?


U direktorij gdje si pokrenuo komandu.

Primjer:
Kod: Označi sve
romcal -H 2012 > romcal.html

To ce kreirati romcal.html datoteku (za 2012 godinu) koju mozes otvoriti u web pregledniku (upises u "adress bar" putanju do datoteke).

Problem je sto ti ovo radis kao root korisnik (osim ako to nije korisnik kojega koristis za svakodnevni rad), stoga se ulogiraj kao korisnik kojega koristis za svakodnevni rad (pod pretpostavkom da si kopirao romcal izvrsnu datoteku u /usr/bin direktorij), pa napravi sljedece:
Kod: Označi sve
romcal -H 2012 > ~/Desktop/romcal.html

To bi trebalo stvoriti romcal.html datoteku na radnoj povrsini korisnika kojega koristis za rad.
When you're a kid and you wanna go "Weee !", but you ain't got drugs yet ... You hold out for your life, hold on to your little GONADS ... and STRIFE.
Avatar
Postovi: 910
Postovi: 910
Pridružen/a: 12 svi 2010, 07:57
Podijelio/la zahvalu: 0 puta
Primio/la zahvalu: 13 puta
OS: linux
:))
jejejeeee super

e znaš što, bio si u pravu išao sam sa root terminalom, onim crvenim.

A druga budaleština je što u home direktoriju imam i Desktop direktorij i direktorij Radna površina. I onda ja stalno gledaj na svoj desktop a tamo ništa nema, a kad sam otišao kroz nautilus pa vidio i jednog i drugog, onda mi je sinulo.

Puno hvala, puno puno.
treba poznavati "psihologiju" nas teladi, a ti znaš. bravo :)
Avatar
Postovi: 63
Postovi: 63
Pridružen/a: 09 srp 2008, 12:06
Podijelio/la zahvalu: 2 puta
Primio/la zahvalu: 0 puta
Nema na cemu. Uzivaj !
When you're a kid and you wanna go "Weee !", but you ain't got drugs yet ... You hold out for your life, hold on to your little GONADS ... and STRIFE.
Avatar
Postovi: 910
Postovi: 910
Pridružen/a: 12 svi 2010, 07:57
Podijelio/la zahvalu: 0 puta
Primio/la zahvalu: 13 puta
OS: linux

Na mreži
Trenutno korisnika/ca: / i 1 gost.