10 lines
172 B
Bash
10 lines
172 B
Bash
|
#!/bin/bash
|
||
|
if [ "$#" -ne 2 ];
|
||
|
then
|
||
|
echo "Pas assez d'arguments"
|
||
|
exit 2
|
||
|
fi
|
||
|
ssh $1 /bin/bash<< EOF
|
||
|
cd /opt/scodoc/Products/ScoDoc/config
|
||
|
./create_dept.sh -n ${2}
|
||
|
EOF
|