correction tabulation
This commit is contained in:
parent
dc935ad24b
commit
8e6ee8d5d7
|
@ -44,15 +44,14 @@ scan ()
|
||||||
#ne prends pas en compte le dossier backup
|
#ne prends pas en compte le dossier backup
|
||||||
if [ $file != "BACKUP" ]; then
|
if [ $file != "BACKUP" ]; then
|
||||||
#liste les process de l'utilisateur puis ne garde que 2 colonne d'information relative à la commande
|
#liste les process de l'utilisateur puis ne garde que 2 colonne d'information relative à la commande
|
||||||
ps -u | tr -s " " | cut -d " " -f 11,12 | while read -r process; do
|
ps -u | tr -s " " | cut -d " " -f 11,12 | while read -r process; done
|
||||||
|
|
||||||
case $process in
|
case $process in
|
||||||
*"maths"*)
|
*"maths"*)
|
||||||
echo "math"
|
|
||||||
path=$( verif MATHS )
|
path=$( verif MATHS )
|
||||||
cp $scandir$file $path
|
cp $scandir$file $path
|
||||||
echo "$?"
|
#echo "$?"
|
||||||
echo "$path"
|
#echo "$path"
|
||||||
pathb=$( verif BACKUP )
|
pathb=$( verif BACKUP )
|
||||||
mv $scandir$file $pathb
|
mv $scandir$file $pathb
|
||||||
echo "$pathb"
|
echo "$pathb"
|
||||||
|
|
Loading…
Reference in a new issue