Re: comando batch
Gentil de Bortoli Júnior
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Francisco Welington de Sousa Lima wrote:
>> wel@voronoi:~$ tcsh
>> voronoi:~> ./gentil.sh
>> 1
>> 2
>> 3
>> 4
>> 5
>> 6
>> 7
>
>> voronoi:~>
>> Fechei o console
>> em outro console
>> wel@voronoi:~$ ps aux | grep gentil.sh
>> wel@voronoi:~$ ps aux | grep gentil.sh
>> wel 5157 0.0 0.0 1552 484 pts/3 S+ 10:01 0:00 grep
>> gentil.sh wel@voronoi:~$ ps aux | grep gentil.sh
>> wel 5159 0.0 0.0 1552 480 pts/3 R+ 10:01 0:00 grep
>> gentil.sh wel@voronoi:~$ ps aux | grep gentil.sh
>> wel 5161 0.0 0.0 1552 480 pts/3 R+ 10:01 0:00 grep
>> gentil.sh wel@voronoi:~$ ps aux | grep gentil.sh
>> wel@voronoi:~$ ps aux | grep gentil.sh
>> wel 5166 0.0 0.0 1552 480 pts/3 R+ 10:02 0:00 grep
>> gentil.sh
>
> Hum. Se você copiou e colou a saída, você esqueceu de executar
> o script com o &.
>
> []s
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.2 (GNU/Linux)
>
> iD8DBQFD13eHR/xCJbtXupkRAritAJ4+dS0/4cHh1vXdaCUSQ4u07J10GgCdFIoY
> iReGOZq6tyn3VVLdeOm70ZQ=
> =YElz
> -----END PGP SIGNATURE-----
voronoi:~> ./gentil.sh &
[1] 5205
voronoi:~> 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
voronoi:~> 30
31
32
outro termonal
wel@voronoi:~$ ps aux | grep gentil.sh
wel 5205 0.0 0.1 2284 1048 pts/2 S 10:14 0:00 /bin/bash
./gentil.sh
wel 5213 0.0 0.0 1552 484 pts/6 S+ 10:14 0:00 grep gentil.sh
wel@voronoi:~$ ps aux | grep gentil.sh
wel 5205 0.0 0.1 2284 1048 pts/2 S 10:14 0:00 /bin/bash
./gentil.sh
wel 5222 0.0 0.0 1552 480 pts/6 R+ 10:14 0:00 grep gentil.sh
wel@voronoi:~$ ps aux | grep gentil.sh
wel 5205 0.0 0.1 2284 1048 pts/2 S 10:14 0:00 /bin/bash
./gentil.sh
wel 5234 0.0 0.0 1552 480 pts/6 R+ 10:14 0:00 grep gentil.sh
wel@voronoi:~$ ps aux | grep gentil.sh
wel 5205 0.0 0.1 2284 1048 pts/2 S 10:14 0:00 /bin/bash
./gentil.sh
wel 5309 0.0 0.0 1552 484 pts/6 S+ 10:16 0:00 grep gentil.sh
wel@voronoi:~$ ps aux | grep gentil.sh
wel 5205 0.0 0.1 2284 1048 pts/2 S 10:14 0:00 /bin/bash
./gentil.sh
wel 5315 0.0 0.0 1552 480 pts/6 R+ 10:16 0:00 grep gentil.sh
wel@voronoi:~$
F. W. S. Lima
Departamento de Física
Centro de Ciência da Natureza
Campus Petrônio Portela
Universidade Federal do Piauí
Teresina-Piauí-Brasil
wel@ufpi.br,wel@fisica.ufc.br, wel@sobral.org
Reply to: