Jul
11
Fixing Adobe Acrobat Reader “expr: syntax error”
Filed Under Fix, Howto, Linux, error | Leave a Comment
After updating my Linux workstation I found that acroread produces “expr: syntax error” when started.
Quick Googling show me the solution.
- Open terminal.
- First find where acroread executable script is located - on my machine:
whereis acroread
acroread: /usr/bin/acroread /usr/lib/acroread - Then type vi /usr/bin/acroread.
- After that type 418G and add *(asterisk) [move cursor after the block press i for insert and *]after second [0-9] block as shown below

- Then save the file [Press Esc 2 times and type :wq]
- Now you can use acrobat again.
NOTE: This fix is for AdobeReader_enu-7.0.9-1 for Linux. It is not tested on other versions or platforms.
EDIT: How to install AdobeReader_enu-7.0.9-1 in CentOS 5/4.x.
Navigate to adobe.com –> Click on get adobe reader –>Choose .rpm version –>Click on Download –>Either Open with Software Installer or download to disk and install if you need to do it on multiple machines.
Jul
5
bash: /bin/rm: Argument list too long - How to fix it
Filed Under Command line, Fix, Howto, Linux, Unix, error | Leave a Comment
Today I’ve decided to cleanup the hard drive on my Linux workstation and “surprisingly” found 8G of temporary files in one folder.
After quick review I’ve decided to erase them with rm command.
For my surprise when running the command:
/bin/rm *.tmp
I got following error message:
bash: /bin/rm: Argument list too long
Conclusion:Even rm command has his limits!
Solution: Get Plumber(Joking)
Actually only Pipe is needed.
By typing following command:
find . -name "*.tmp"|less
You will see list of the files and by replacing less with xargs /bin/rm those files will be erased. Can you skip previous step? Yes you can and it is not required, but you risk to erase a lot of data if you have syntax error.
find . -name "*.tmp"| xargs /bin/rm.
Depending on the number of files and your system speed after a while all files will be erased.
Done .