[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [shell-script] Comandos não executando dentro do script
From: |
Flavio Torres |
Subject: |
Re: [shell-script] Comandos não executando dentro do script |
Date: |
Sat, 21 Nov 2009 13:52:17 -0200 |
User-agent: |
Thunderbird 2.0.0.23 (Windows/20090812) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Vinicius Xavier wrote:
>
> for i in `cat comandos` ; do "$i" ; done
Tente assim:
for i in `cat comandos` ; do eval $i ; done
Veja usabilidade em:
http://wiki.softwarelivre.org/TWikiBar/TWikiBarPapo010#O_comando_eval
- --
/*---------------------------------------------------*/
/* * Flavio Torres - Administrador de Sistemas*/
/* /_\ */int y,z;main(x){x=(x>0?-9:x);z=((z=(x+5)
/* o. .o */)>0?z:-z);printf(!x&&++y?"\n":z?z>y%3+y/
/* ((Y)) */3?" ":x<-5?"/":"\\":y?"|":"*");y-9?main(
/* ()) (() */++x):puts(" _|_|_")&&puts(" \\___/");}
/* ()^() A party animal isn't just for Christmas.*/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
iEYEARECAAYFAksIDLEACgkQNRQApncg295R1wCfVHc0BC5voRg4N7LpRaf19DO0
l+EAoOvElnsIXpEKNByJfz7gPQ7Izz/A
=w/SQ
-----END PGP SIGNATURE-----