Enviado em 25/02/2022 - 12:17h
[exec] (Logoff) {fluxbox-remote exit} <>
Enviado em 25/02/2022 - 12:17h
Enviado em 25/02/2022 - 19:48h
http://fluxbox.org/help/man-fluxbox-remote.php
https://landofnightandday.blogspot.com/2018/06/exit-fluxbox-session-from-command-line.html
Enviado em 25/02/2022 - 22:21h
Enviado em 26/02/2022 - 02:19h
Enviado em 26/02/2022 - 11:59h
Enviado em 26/02/2022 - 20:14h
printf "allowRemoteActions:\t True\n"|grep -Ei 'allowRemoteActions:[[:blank:] ]+True'
allowRemoteActions: True
printf "allowRemoteActions:\t True\n"|grep -Ei 'allowRemoteActions:[[:space:] ]+True'
allowRemoteActions: True
--------------------------------------------------------------------------------------------------------
printf "allowRemoteActions:\t true\n"|grep -Eiq 'allowRemoteActions:[[:space:] ]+true' && echo "Ativado" || echo "Desativado"
Ativado
--------------------------------------------------------------------------------------------------------
printf "allowRemoteActions:\t false\n"|grep -Eiq 'allowRemoteActions:[[:space:] ]+true' && echo "Ativado" || echo "Desativado"
Desativado
---------------------------------------------------------------------------------------------------
Apelando.... :)
printf "allowRemoteActions:\t True\n"|grep -Ei 'allowRemoteActions:.*True$'
Enviado em 26/02/2022 - 21:16h
printf "allowRemoteActions:\t True\n"|grep -Ei 'allowRemoteActions:[[:blank:] ]+True'
allowRemoteActions: True
printf "allowRemoteActions:\t True\n"|grep -Ei 'allowRemoteActions:[[:space:] ]+True'
allowRemoteActions: True
--------------------------------------------------------------------------------------------------------
printf "allowRemoteActions:\t true\n"|grep -Eiq 'allowRemoteActions:[[:space:] ]+true' && echo "Ativado" || echo "Desativado"
Ativado
--------------------------------------------------------------------------------------------------------
printf "allowRemoteActions:\t false\n"|grep -Eiq 'allowRemoteActions:[[:space:] ]+true' && echo "Ativado" || echo "Desativado"
Desativado
---------------------------------------------------------------------------------------------------
Apelando.... :)
printf "allowRemoteActions:\t True\n"|grep -Ei 'allowRemoteActions:.*True$'
Enviado em 26/02/2022 - 21:42h
printf "allowRemoteActions:\t True\n"|grep -Ei 'allowRemoteActions:[[:blank:] ]+True'
allowRemoteActions: True
printf "allowRemoteActions:\t True\n"|grep -Ei 'allowRemoteActions:[[:space:] ]+True'
allowRemoteActions: True
--------------------------------------------------------------------------------------------------------
printf "allowRemoteActions:\t true\n"|grep -Eiq 'allowRemoteActions:[[:space:] ]+true' && echo "Ativado" || echo "Desativado"
Ativado
--------------------------------------------------------------------------------------------------------
printf "allowRemoteActions:\t false\n"|grep -Eiq 'allowRemoteActions:[[:space:] ]+true' && echo "Ativado" || echo "Desativado"
Desativado
---------------------------------------------------------------------------------------------------
Apelando.... :)
printf "allowRemoteActions:\t True\n"|grep -Ei 'allowRemoteActions:.*True$'
grep -Eiq 'allowRemoteActions:[[:space:] ]+true' ~/.fluxbox/init && echo "Ativado" || echo "Desativado"
if grep -Eiq 'allowRemoteActions:[[:space:] ]+true' ~/.fluxbox/init;then
echo "Ativado"
else
echo -e "Desativado,\nAlterando...."
sed -ri '/allowRemoteActions:[\t ]+/s/false$/true/' ~/.fluxbox/init
fi
Enviado em 27/02/2022 - 20:41h
grep -Eiq 'allowRemoteActions:[[:space:] ]+true' ~/.fluxbox/init && echo "Ativado" || echo "Desativado"
Enviado em 28/02/2022 - 02:38h
O printf ou grep funciona como um find na pasta onde esta rodando o scritp.....?
Entre na sua conta para responder.