Ver Mensaje Individual
  #5 (permalink)  
Antiguo 25/02/2008, 14:11
MarioHeredia
 
Fecha de Ingreso: noviembre-2007
Ubicación: Argentina
Mensajes: 134
Antigüedad: 16 años, 6 meses
Puntos: 3
Re: Using autoload Functions

Koveart, funciono lo de incluirlas dentro de un shell y llamarlas.

En un SunOS 5.9 funciono de la siguiente manera:

Código:
#!/usr/bin/ksh

. /example/f_utils.sh

echo "Prueba" | mailx -s "Prueba" `f_mail UX`
y dentro de f_utils.sh tengo:

Código:
/example># cat f_utils.sh
#!/usr/bin/ksh

f_mail () {
egrep "$1" /spool/mails.txt | nawk '{ print $NF }' | sort -u
}
/example>#
Para mas info, me ayudo mucho buscar how use external functions in scripts shell the unix.

external functions

Saludos, Mario.
__________________
Y venció David al filisteo con honda y piedra; e hirió al filisteo y lo mató, sin tener David espada en su mano.