0 pts.
 QSH error “find: 001-2191 The ending ‘;’ character was not found.”.
I have attempted to use two approaches (from postings on Search400) in order to clean up the IFS. Both of these use QSH. I have a problem in that both iSeries machines at my disposal ignore the ";" at the line end, and return the error "find: 001-2191 The ending ';' character was not found.". An example (from a Search400 tip) that returns the error is: "find /tmp -size +2048000 -exec rm -r {} ;". This is the first time I have attempted to use QSH on either of these systems. Am I missing something in the setup ? Thanks in advance to anyone that can help.

Software/Hardware used:
ASKED: November 21, 2005  10:43 PM
UPDATED: November 20, 2009  8:27 AM

Answer Wiki:
I am unfamiliar with qshell as well. But, if you are looking for a programmatic way to clean up the IFS, you might want to check out this site. http://www.scottklement.com/rpg/ifs_ebook/ I have downloaded the code and modified per our needs and it works well. ========================================================== You need to learn to read manuals. Taking a powerful command from somewhere on the internet that deletes files that aren't yours and that you might have no information about, and running it on a system when you don't know how the command works is reasonable grounds for dismissal. The Qshell manual tells you what the find utility does, how to write it and what to do about the semi-colon.<pre>find /tmp -size +2048000 -exec rm -r {} ;</pre> Escape the semi-colon and it will probably work. Are you sure you want it to? Tom
Last Wiki Answer Submitted:  November 20, 2009  8:27 am  by  TomLiotta   107,845 pts.
All Answer Wiki Contributors:  TomLiotta   107,845 pts. , Jacknbox   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _