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

Re: Sobre procesos en background



Santiago Vila wrote:

> David Leal:
> > Alguien sabe como puedo hacer para que cuando envio el siguente proceso
> > a background no lo aborte cuando compile el primer fichero?
> >
> > Tanto si hago:
> > a)  cc -c *.c &
> > b)  nohup cc -c *.c
>
> Acabo de probar esto y a mí me funciona.

Te envio lo que me sale a mi en el terminal (comentarios en may'usculas) :

urano 38: ls *.z
No match.
urano 39: ls z*
za03.f90   ze01a.f    ze01ad.f

VOY A COMPILAR LOS FICHEROS z*.f

urano 40: f90 -c z*.f
ze01a.f
   external subroutine ZE01A

41 Lines Compiled
ze01ad.f
   external subroutine ZE01AD

41 Lines Compiled

COMPILA BIEN

VOY A COMPROBAR QUE SE HAN CREADO LOS FICHEROS OBJETOS

urano 41: ls z*
za03.f90   ze01a.f    ze01a.o    ze01ad.f   ze01ad.o

BORRO LOS EJECUTABLES PARA VER SI SON GENERADOS NUEVAMENTE CUANDO ENVIE
EL PROCESO EN BACKGROUND

urano 42: rm z*.o

ENVIO EL PROCESO EN BACKGROUND

urano 43:  f90 -c z*.f &
[1] 13821
urano 44:
[1]  +Stopped (tty output) f90 -c z*.f

ABORTA

urano 44: ls z*
za03.f90   ze01a.f    ze01ad.f
urano 45:

NO APARECEN LOS FICHEROS OBJETOS COMO RESULTADO DE LA COMPILACIO'N!

Yo lo he probado con la csh.

Gracias de antemano,

David



--
David R. Leal Valmana            | Office: 10.1.02
Tel: (34)-916.24.93.14           | Fax: (34)-916.24.98.49
mailto:leal@est-econ.uc3m.es     | http://jupiter.uc3m.es/~david/
Universidad Carlos III de Madrid | Dpto. de Estadistica y Econometria




Reply to: