QSH error “find: 001-2191 The ending ‘;’ character was not found.”.

pts.
Tags:
AS/400
Linux
Software
Tech support
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.

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following