You are not logged in.

#1 2009-11-11 03:36:30

loudtiger
Member
Registered: 2009-01-08
Posts: 68

piping into pidgin conversation??

this might sound like a weird question, but is there any way to pipe a file into a pidgin conversation? for example:

cat foo > pidgin.users.x

then the contents of the file would show up in the text input field.

Offline

#2 2009-11-11 03:52:25

Trent
Member
From: Baltimore, MD (US)
Registered: 2009-04-16
Posts: 990

Re: piping into pidgin conversation??

You can always pipe it into xclip, then paste it into your pidgin window.

Use |, though, not > (which is for file redirection).

Offline

#3 2009-11-11 06:01:23

pseup
Member
Registered: 2008-06-06
Posts: 103

Re: piping into pidgin conversation??

It can be done via dbus if you want to make a script for it. The PurpleConvImSend method will send the message to the recipiant without confirming it first, PurpleConvSendConfirm will send the message to the edit box for you to confirm/edit/whatever.

Probably also possible via piping with the `purple-remote` app, but I've never really looked at.

Offline

#4 2009-11-11 20:38:50

HashBox
Member
Registered: 2009-01-22
Posts: 271

Re: piping into pidgin conversation??

If you want file redirection you could probably make a simple python fuse filesystem, and use dbus to communicate with pidgin smile actually sounds like a handy little script

Edit: I would actually have a go at coding it if I was using Linux, shouldn't be too difficult really

Last edited by HashBox (2009-11-11 20:39:55)

Offline

#5 2009-11-11 20:48:15

Square
Member
Registered: 2008-06-11
Posts: 435

Re: piping into pidgin conversation??

There is a pidgin plugin that comes with the purple plugins pack which allows you to do just that. It is the exec extension, and it allows you to use /exec and ! to run shell commands in the chat window.

With !, you can do '!cat file' in your conversation and it will spit out the file's contents to your contact. big_smile

Last edited by Square (2009-11-11 20:48:48)


 

Offline

#6 2009-11-11 22:20:58

Daenyth
Forum Fellow
From: Boston, MA
Registered: 2008-02-24
Posts: 1,244

Re: piping into pidgin conversation??

The exec plugin is probably the simplest way. I use it often

Offline

Board footer

Powered by FluxBB