Guilherme L. Stolfo wrote:
>Galera alguem saberia explicar o que seria isso "1>/dev/null
>2>/dev/null" nunca usei isso no shell alguem ja usou?
>
>exec("testa.php 1>/dev/null 2>/dev/null &");
>
>isso � um trecho de um sistema que estou mechendo... e ele esta
> fazendo isso ai em cima..
Veja s�: sua mensagem � de 14:45. Estou respondendo �s 22:40. Espero que
n�o tenha ficado no aguardo at� agora.
Resposta curta: man bash
REDIRECTION
Before a command is executed, its input and output may be
redirected
using a special notation interpreted by the shell.
[...]
Redirecting Output
Redirection of output causes the file whose name results
from the
expansion of word to be opened for writing on file descriptor n,
or the
standard output (file descriptor 1) if n is not specified. If
the file
does not exist it is created; if it does exist it is truncated to
zero
size.
The general format for redirecting output is:
[n]>word
Em outras palavras, o "1>/dev/null 2>/dev/null" redireciona os "file
descriptors" 1 e 2 para /dev/null. Lembro que 1 � o stdout e 2 � o stderr.
--
Thiago Macieira - Registered Linux user #65028
thiago (AT) macieira (DOT) info
ICQ UIN: 1967141 PGP/GPG: 0x6EF45358; fingerprint:
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358
---------------------------------------------------------------------------
Esta lista � patrocinada pela Conectiva S.A. Visite http://www.conectiva.com.br
Arquivo: http://bazar2.conectiva.com.br/mailman/listinfo/linux-br
Regras de utiliza��o da lista: http://linux-br.conectiva.com.br
FAQ: http://www.zago.eti.br/menu.html