Home > Uncategorized > Print recent pidgin messages

Print recent pidgin messages

Below is a command I use once in a while to print the last few lines of any pidgin log modified in the past 24 hours. I find it useful if I am logged in remotely to a machine currently running pidgin. Also, it sometimes happens that I am unable to review new messages before pidgin closes due to a variety of unexpected circumstances, such as power outages.

$ find ~/.purple/logs \
> -type f \
> -mtime -1 \
> ! -wholename '*/.system/*' \
> -print0 \
> | sort -z \
> | xargs -0 tail \
> | less -RF

Obviously, it makes sense to assign an alias to this long command.

Advertisements
Categories: Uncategorized Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: