PDA

View Full Version : [shell script] Clipboard



Ninnghizidha
August 4th, 2005, 01:59 PM
Good morning!

I got a java-program, that outputs an URI. I'd like to copy that string into the Clipboard (Best) OR open a firefox-Window to this URI OR show this URI in Zenity. ... but i got no idea how to do that ...


user@Madiel:~$ java -jar PicUploader.jar foto.png
uploaded file: foto.png to url: http://666kb.com/i/10nedtgytt7gg.png

user@Madiel:~$


Can someone help me, please - any help is appreciated! :)

Ninnghizidha.

Phrawm48
January 17th, 2008, 11:19 PM
Did you ever find out how to do this?

If not, take a look at xclip...

Cheers & hope this helps,
Ric
SFO

naugiedoggie
January 20th, 2008, 02:26 PM
Good morning!

I got a java-program, that outputs an URI. I'd like to copy that string into the Clipboard (Best) OR open a firefox-Window to this URI OR show this URI in Zenity. ... but i got no idea how to do that ...


user@Madiel:~$ java -jar PicUploader.jar foto.png
uploaded file: foto.png to url: http://666kb.com/i/10nedtgytt7gg.png

user@Madiel:~$


Can someone help me, please - any help is appreciated! :)

Ninnghizidha.

Hello,

See:

Clipboard API (http://java.sun.com/javase/6/docs/api/java/awt/datatransfer/Clipboard.html)
The clipboard in use (http://www.javapractices.com/topic/TopicAction.do?Id=82)

Thanks.

mp