Bonjour
J'écris un script sh qui doit être appelé par une tierce application.
En fait, ce script invoque la commande BLAST bien connue des bioinformaticiens
Or, à l'exécution, j'ai les erreurs suivantes:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 #!/bin/sh if [ $# -ne 3 ] then exit 1 fi USER=$1 shift BLAST_CMD=$1 shift PATH=$1 while [ `ps -fu $USER | grep -v grep | grep -c blastall` -ge 4 ] do sleep `perl -e 'int(rand(100)'` done cd $PATH $BLAST_CMD | at now + `at -l | wc -l` min
Bien bizarre que des commandes simples comme ça ne soient pas reconnues
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 BLAST.sh: line 14: ps: command not found BLAST.sh: line 14: grep: command not found BLAST.sh: line 14: grep: command not found BLAST.sh: line 14: [: -ge: unary operator expected BLAST.sh: line 19: wc: command not found BLAST.sh: line 19: at: command not found BLAST.sh: line 19: at: command not found
Si quelqu'un a une idée, il est le bienvenu.
@++
Partager