Po z� me sirve. Pos gracias.

El jue, 16 ago 2001, cesar escribi�:
> Nas.
> 
>  
>  antioco:~/.sec# cat > pru1.sh
> #!/bin/sh
> echo "Hola Pepe"
> exit 16
> 
> ^C
> 
>  antioco:~/.sec# chmod +x pru1.sh
>  antioco:~/.sec# ./pru1.sh
>  Hola Pepe
>  antioco:~/.sec# echo $?
>  16
>  antioco:~/.sec# 
> 
> 
>  Espero que te sirva.
>  Un saludo.
> 
>    C�sar
>  [Insallah]
> 
> 
> 
> 
> 
> Einar Matveinen wrote:
> > 
> > Buenas.
> > 
> > �Sab�is cu�l es el nombre de la variable que contiene si la salida de un
> > comando ha sido correcta o incorrecta?. Me explico: Al ejecutar un script $#
> > contiene el n� de par�metros que se han pasado a la shell. $0 contiene el
> > nombre del programa. $* contiene todos los par�metros q se han introducido.
> > Pues si sab�is cu�l es me ahorrari�is un poco de tiempo. Precioso es, dicen 
> > (el
> > tiempo)...
> > 
> > Haaasta luego.
> > 
> > --
> > 
> > Einar Matveinen
> > 
> > H�rkkutr�llin hrae�a ge�
> > rim�ursarnir fornir
> > dvergar �lvar draugar me�
> > d�sir v�lvur nornir
> > 
> > --
> > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
> 
> 
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
-- 

Einar Matveinen

H�rkkutr�llin hrae�a ge�
rim�ursarnir fornir
dvergar �lvar draugar me�
d�sir v�lvur nornir

Responder a