[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [shell-script] Avisar que o log acabou e rodar outro script
From: |
MrBiTS |
Subject: |
Re: [shell-script] Avisar que o log acabou e rodar outro script |
Date: |
Fri, 27 Jun 2008 14:41:07 -0300 |
User-agent: |
Thunderbird 2.0.0.14 (Windows/20080421) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
| Eu estou tentando fazer um if/case/while (qq um que ajude) a retornar
| uma msg de "XX Aplicativo acabou" qdo o log retornar a frase final dele,
| geralmente como "successfully processed". E em seguida (talvez após um
| sleep 10), fazer ele rodar um outro script (Ex: painel.sh).
FRASE=$(tail -1 arquivo.log)
if [ $FRASE == "successfully processed" ] ; then
~ sleep 10
~ ./painel.sh
fi
- --
Um abraço
.0. MrBiTs - address@hidden
..0 GnuPG -
http://keys.cardboard.net:11371/pks/lookup?op=get&search=0xAC37715A6DD1F186
000 http://www.mrbits.com.br
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFIZSYzrDdxWm3R8YYRApCOAJoD7eSYX1KjaK8r8KqYC2b4PTFzdACgg0Hd
AGde1Zkgr3uqMW93p8LPrxk=
=829G
-----END PGP SIGNATURE-----