OVH Cloud OVH Cloud

script shell

2 réponses
Avatar
kurtz le pirate
'soir tout le monde.

ça va vous paraître bête comme question : comment on fait pour lancer un
script sous shell ? j'utilise bash. le script c'est (attention code
supet-balaize ) :

#! /bin/bash
ps -a



je sauvegarde ça dans le fichier 'toto'.

je rend 'toto' executable chmod +x toto

et... ???


merci de votre aide

2 réponses

Avatar
Michael
je rend 'toto' executable chmod +x toto


Oui mais Toto n'est pas dans le path donc :

./toto

point slash toto

Avatar
kurtz le pirate
In article <421a2e45$0$19344$,
Michael wrote:

je rend 'toto' executable chmod +x toto


Oui mais Toto n'est pas dans le path donc :

./toto

point slash toto



c'est bête comme choux !
merci michael