[MontelLUG] Esperti di cli e shell venite a me!!! Aiuto con script e caratteri speciali

cesco francesco.versaci a gmail.com
Lun 25 Lug 2011 18:27:16 CEST


Octavo Kalendas Augustas MMXI Samuele="S" haec scripsit:
S> Ho una variabile impostata in questo modo:
S> DAEMON_OPTS=" -i br0 >> /var/log/urlsnarf.log"
S> Ora, quella redirezione viene interpretata in modo diverso da
S> quanto mi aspettassi.

Che succede se fai un bel

  DAEMON_OPTS=" -i br0"
  REDIR="/var/log/urlsnarf.log"

e lanci con

  blablabla $DAEMON_OPTS >> $REDIR

?
-- 
     ______________      
    /\             \     
    \_| ciao ciao, |      My work  always tried  to unite the  true with
      |   cesco    |      the beautiful; but when I had to choose one or
      |   _________|_     the other, I usually chose the beautiful.
       \_/___________/                                   -- Hermann Weyl




More information about the montellug mailing list