Re: Distinguer un appel de script bash par son nom

Etusivu

Vastaa
Lähettäjä: Frédéric
Päiväys:  
Vastaanottaja: Guilde
Aihe: Re: Distinguer un appel de script bash par son nom
Le 31/01/2017, Laurent a écrit :

> tu peux faire:
>
> case $0 in
> */toto.sh) echo ceci est toto ;;
> */titi.sh) echo ceci est titi ;;
> esac


Ah, oui, effectivement ! KISS ;o)

Merci !

-- 
    Frédéric