[Users] Counting characters
jerry at seibercom.net
Thu Dec 6 19:04:10 CET 2012
On Thu, 6 Dec 2012 16:20:09 +0000
Neil Bothwick articulated:
> On Thu, 6 Dec 2012 11:05:40 -0500, Jerry wrote:
> > I occasionally use claws-mail to send text messages to cell phone
> > devices. These have to be under 140 characters in total (or maybe
> > 160 -- I forget). Anyway, does anyone know of a quick way to
> > determine the number of characters in the message other than
> > physically counting them?
> Try this as an action
> | kdialog --msgbox "Characters: $(wc -c)"
> If you don't use KDE, replace kdialog with your desktop's equivalent.
You win the prize for best suggestion -- almost. While it certainly
does work, an error window pops up with this ominous message:
--- Ended: kdialog --msgbox "Characters: $(wc -c)"
kdialog(25959)/KSharedDataCache: Unable to find an appropriate lock to guard the shared cache. This *should* be essentially impossible. :(
kdialog(25959)/KSharedDataCache: Unable to perform initial setup, this system probably does not really support process-shared pthreads or semaphores, even though it claims otherwise.
kdialog(25959)/KSharedDataCache: Unable to unmap shared memory segment 0x8095c3000
This is not really a problem since I would only require this function a
few times a month.
Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 488 bytes
Desc: not available
More information about the Users