[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [linux-team] /dev/null



Raphael Bauduin 2 wrote:

> Voici une commande shell:
>
> rsh scilab01 $SIGMASQRT         1  50000000 > $OUTPUT < /dev/null&
>
> Quelqu'un peut-il me dire ce que signifie le "< /dev/null" ? Le dev/null
> est un "trou noir", mais pourquoi placer cela a la fin de la ligne de
> commande?
>
> Merci.

petit test

dingo:~$ cat &
[2] 4693
dingo:~$
# ici je press enter

[2]+  Stopped                 cat
#  ici cat attend une entree sur son entree standard
# mais comme il est plus le "chef de la scession", il a plus
# droit a y acceder
dingo:~$ fg
cat  # ici ^D
dingo:~$

# et maintenant avec /dev/null
dingo:~$  cat < /dev/null &
[2] 4696
dingo:~$
# ici je press enter
[2]+  Done                    cat </dev/null
dingo:~$

voila deduisant les implications et essaye de comprendre pq c'est
comme ca dans ton cas !

PS : le rsh ne change rien a l'affaire

>
> Raph.
> ---------
> This message was send by Majordomo 1.94.3. Please repport problems to
> manu@rtfm.be. If you want to be deleted from the list, send a mail to
> majordomo@rtfm.be with "unsubscribe linux-team" in the body.

--

        Spineux Alain

Romani ite domus.
======================================================================
  Spineux Alain                         E-MAIL : spineux@prm.ucl.ac.be
  INSTITUT STEVIN
  Catholic University of Louvain        FAX    : 32-10-472501
  PLACE DU LEVANT 2                     PHONE  : 32-10-472516
  B-1348 LOUVAIN-LA-NEUVE (BELGIUM)
=======================================================================


---------
This message was send by Majordomo 1.94.3. Please repport problems to
manu@rtfm.be. If you want to be deleted from the list, send a mail to
majordomo@rtfm.be with "unsubscribe linux-team" in the body.