var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
Unanswered: supressing output using dbaccess
I use dbaccess utility to connect to informix from shell scripts.
dbaccess $DB_NAME $SQL_FILE >$TMP_FILE 2>>$LOG_FILE
The log file contains messages like this
2 row(s) unloaded.
I want to supress these messages..
Thanks in advance for your help.
Direct way of suppressing the "processing messages" does not seems to be available in unix shell script. Few steps needs to carried out for the purpose.
Create a file that contains the possible processing messages.
$ cat processmsg
Execute your shell script
$ dbaccess $DB_NAME $SQL_FILE >$TMP_FILE 2>>$LOG_FILE
The actual result will be stored in $TMP_FILE.
The error message and the processing messages will be stored in the $LOG_file.
$ egrep -v processmsg $LOG_FILE > $LOG_FILE
Above step implies that the line with process messages are not displayed using -v option of egrep and is again redirected without append to the same file name $LOG_FILE which means that $LOG_FILE now holds only error messages.