A voir également:
- Cd en script unix
- Script vidéo youtube - Guide
- Cd burner - Télécharger - Gravure
- Hiren's boot cd - Télécharger - Divers Utilitaires
- Clone cd - Télécharger - Gravure
- Jaquette cd gratuite à télécharger - Télécharger - Catalogage
2 réponses
Salut,
est-ce que ton repertoire courant est dans ton PATH???
sinon tu tape ./top une fois que tu a mis les droits en execution
Enfin je crois.
mateo
est-ce que ton repertoire courant est dans ton PATH???
sinon tu tape ./top une fois que tu a mis les droits en execution
Enfin je crois.
mateo
C'est normal , ton script va se construire son propre environnement( hérité du père mais distinct, dans un autre processus)
Il faut donc exécuper celui-ci dans le shell courant(un petit peu comme si tu faisais un "coller" des instructions:
Observe le répertoire courant renseigné par le prompt.
Tu utilises donc source (ou '.' mais c'est vraiment pas très lisible)pour interpréter le script dans le shell courant
aides possibles(non exhaustif)
*
johand@horus:~/src/fortran$ help source
source: source filename
Read and execute commands from FILENAME and return. The pathnames in $PATH are used to find the directory containing FILENAME.
*
man bash
Questions apparentées
help export
Johan
Gates gave you the windows.
GNU gave us the whole house.(Alexandrin)
Il faut donc exécuper celui-ci dans le shell courant(un petit peu comme si tu faisais un "coller" des instructions:
johand@horus:~$ cd src/ johand@horus:~/src$ cat mycd.sh #! /bin/sh cd fortran pwd ls johand@horus:~/src$ ./mycd.sh /home/johand/src/fortran MARKS.DAT SIEVE.FOR.bak simple.exe simple.f77.bak stats MARKS.DAT~ STATS.FOR simple.f simple.lis SIEVE.FOR STATS.FOR.bak simple.f77 simple.obj johand@horus:~/src$ source ./mycd.sh /home/johand/src/fortran MARKS.DAT SIEVE.FOR.bak simple.exe simple.f77.bak stats MARKS.DAT~ STATS.FOR simple.f simple.lis SIEVE.FOR STATS.FOR.bak simple.f77 simple.obj johand@horus:~/src/fortran$
Observe le répertoire courant renseigné par le prompt.
Tu utilises donc source (ou '.' mais c'est vraiment pas très lisible)pour interpréter le script dans le shell courant
aides possibles(non exhaustif)
*
johand@horus:~/src/fortran$ help source
source: source filename
Read and execute commands from FILENAME and return. The pathnames in $PATH are used to find the directory containing FILENAME.
*
man bash
Questions apparentées
help export
Johan
Gates gave you the windows.
GNU gave us the whole house.(Alexandrin)