J'ai un problème avec l'exécution d'un script shell dans un shell distant.Problèmes d'obtention d'une variable de shell distante
Je ne peux pas obtenir la valeur de $ ARQ_END.
ssh -T [email protected] << 'EOSSH'
/app/work/leo/ReturnFileName.sh #This script returns a filename like: ADDRESS_BR_RECIFE_20170913.txt
ARQ_END="`/app/work/leo/ReturnFileName.sh`"
EOSSH
echo $ARQ_END #Returns nothing! Expected to return: ADDRESS_BR_RECIFE_20170913.txt