Questão de Sistemas Operacionais — Unix — CESGRANRIO 2013
Sistemas OperacionaisUnix
- Código
- cg001187
- Banca
- CESGRANRIO
- Órgão
- IBGE
- Ano
- 2013
- Nível
- Superior
- Cargo
- Analista - Suporte Operacional
O interpretador de comandos bash do sistema UNIX permite a verifcação do status do encerrramento do último comando ou função executado no script. Um exemplo de trecho de código fonte que verifica o valor desse status é
- Aif [ $@ -eq 1 ]; then exit; fi
- Bif [ $* -eq 1 ]; then exit; fi
- Cif [ $? -ne 0 ]; then exit; fi
- Dif [ $# -ne 0 ]; then exit; fi
- Eif [ $$ -ne 1 ]; then exit; fi