Bonjour,
Mes dernières utilisations d'un script shell date un peu, et j'ai du m'y remettre. Et j'ai un petit problème. Voici mon script (tout simple !!!) :
#!/bin/bash
function main()
{
if test -f fichier
then
echo "Fichier d'options déjà existant"
else
touch fichier
chmod u+rwx fichier
fi
}
main
-------------------------
J'ai un joyeux touch : commande introuvable
chmod : commande introuvable
Alors qu'elles fonctionnent très bien dans un terminal ... Je comprends vaiment vraiment pas !!!
Merci pour votre aide
Partager