Maybe "xclip -l 1 -i" could do the work. BTW I have just simplified the script even more (using umask instead of chmod's). Last changes are in the hg tip.
http://nibble.develsec.org/hg/toys/file/a12b1de0a2cc/passman On Thu, 10 Dec 2009 23:46:31 +0000 Rob <robpill...@gmail.com> wrote: > >What timeout -t affects? Looks like nothing changed. For -t 5000 i > >can retrieve PRIMARY after 5 seconds, before 5 seconds and at any > >time. > > You're right, perhaps it's an xsel bug? > Perhaps you could > > echo "password" | xsel -i > sleep 0.5 > xsel -c # or -d? > > Maybe xclip offers more