How to stop error message coming to unix screen after runnin

Posted by arvindprogress on 13-Nov-2018 09:27

I am running unix shell script using os-command statement with silent option.

Since there are  errors while executing unix command and these error directory coming on putty/terminal screen.

h_command   = SUBSTITUTE("/uhome/dslayad/readfile.sh &1 &2 &3 > &3.err", h_search_type, h_search_value, h_file_name).

OS-COMMAND SILENT VALUE(h_command).

 

i need to stop these error from displaying on terminal.

Error:

awk: Input line S:\source\develop\wc cannot be longer than 3,000 bytes.

The input line number is 19.
The source line number is 1.
awk: Input line S:\source\develop\wc cannot be longer than 3,000 bytes.
The input line number is 150.
The source line number is 1.
cat: Cannot open /u1/pwrbrkr/source/develop/web/iqpr/list/iqgc__x.x: Permission denied
cat: Cannot open /u1/pwrbrkr/source/develop/web/iqpr/list/iqghcax.x: Permission denied

All Replies

Posted by Peter Mayson on 13-Nov-2018 09:52

h_command   = SUBSTITUTE("/uhome/dslayad/readfile.sh &1 &2 &3 > &3.err 2>/dev/null", h_search_type, h_search_value, h_file_name).

 
 
 

Nedbank Group Limited Internal Use Only

Posted by arvindprogress on 13-Nov-2018 10:06

Still message are coming on screen

  lqqqqqqqqqqqqqqqqqField/Program Search Utilityqqqqqqqqqqqqqqqqqk
                                                                                      xh_search_type: UPDATE      [V] h_search_value: amt            x
                                                                                      mqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqj
                                                    lqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqSearch Resultsqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqk
                                                    x Source File                                         Line No. Value Searched For                                                  x
                                                    x qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq  qqqqqqqq qqqqqqqqqqqqqqqqqqqqqqqqqqqqqq                                      x
                                                    x                                                                                                                                  x
                                                    x                                                                                                                                  x
                                                    x                                                                                                                                  x
                                                    x                                                                                                                                  x
                                                    x                                                                                                                                  x
                                                    x                                                                                                                                  x
                                                    x                                                                                                                                  x
                                                    x                                                                                                                                  x
                                                    x                                                                                                                                  x
                                                    x                                                                                                                                  x
                                                    x                                                                                                                                  x
                                                    x                                                                                                                                  x
                                                    x                                                                                                                                  x
                                                    x                                                                                                                                  x
                                                    x                                                                                                                                  x
                                                    x                                                                                                                                  x
                                                    x                                                                                                                                  x
                                                    x                                                                                                                                  x
                                                    x                                                                                                                                  x
                                                    x                                                                                                                                  x
                                                    x                                                                                                                                  x
                                                    x                                                                find: cannot open /u1/pwrbrkr/source/develop/web/desktop/public/kycforms/bw_ips
find: cannot open /u1/pwrbrkr/source/develop/web/desktop/help/Help1                                                                                                                    x
awk: Line S:\source\develop\gu cannot have more than 199 fields.                                                                                                                       x
 The input line number is 4.                        x                                                                                                                                  x
 The source line number is 1.                       x                                                                                                                                  x
                                                    x                                                                                                                                  x
                                                    x                                                                                                                                  x
                                                    x                                                                                                                                  x
                                                    x                                                                                                                                  x


Posted by arvindprogress on 13-Nov-2018 10:07

image.png

This thread is closed