Hi
I need to suppress the warning from sequence. I am reading a file using grep command.
Warning is "
SEQ_NAME..JobControl (EXECUTE_COMMAND_NAME): Command grep -v '^#' did not finish OK, reply = '1'"
During testing our seq, this warning comes when the file is empty.
Is there any method / command which will help to supress this warning?
I searched in this forum, however I didn't find any related result.
I am not very happy with the Message Handler. So If other that Message_Handler will helpful for me.
Thanks
Bob
Warning in Sequence
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Don't process empty files.
Code: Select all
if [ -z filename ] then
exit 0
else
grep ...
endif
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: