Enviado em 15/12/2014 - 14:15h
Ola, estou tentando criar um scrip basico de adicionar um conteudo em um arquivo.
PRECISO ADICIONAR ISTO -> export PROMPT_COMMAND='RETRN_VAL=$?;logger -p local3.debug "$whoamy [$$]: $(history 1 | sed "s/^[ ]*[0-9]\+[ ]*//" ) [$RETRN_VAL]"' DENTRO DO ARQUIVO rafael.txt
VIA SHELL SCRIPT.
#!/bin/bash
##############################################################
############# SCRIPT LOGANDO COMANDOS ########################
##############################################################
#ADICIONANDO CONTEUDO NO ARQUIVO rafael.txt
echo export PROMPT_COMMAND='RETRN_VAL=$?;logger -p local3.debug "\$whoamy \[$$]: \$(history 1 | sed "s/^[ ]*[0-9]\+[ ]*//" ) [$RETRN_VAL]"\' >> rafael.txt
#Fim