bonjour
alors j'ai un fichier /position1/fichier1.sh qui contient
ensuite j'ai un lien symbolique vers ce fichier :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 echo `dirname $0`
le probleme est quand je lance fichier2.sh, j'obtiens:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3 PROMPT> ls -ltr /position2/fichier2.sh lrwxrwxrwx 1 oracle dba 38 Aug 15 15:32 /position2/fichier2.sh -> /position1/fichier1.sh
et pas position1...
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4 PROMPT> cd /position2 PROMPT> fichier2.sh /position2
qu'est ce que je peux mettre dans mon fichier1.sh pour faire afficher position1
Partager