TinyURL

Chat & Messenging

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

1
5 .0
Description:

Konversation script that makes a TinyURL (http://tinyurl.com) from a given URL.

Note: No longer needs curl, works with Curl and wget
(Thanks Billy Oliva)

Just copy it to /usr/share/apps/konversation/scripts/ (system wide) or to ~/.kde/share/apps/konversation/scripts/ (for just your user)
Last changelog:

13 years ago

v1.0
1st release

V1.1
Now uses env
Now checks for an argument (URL)
Now alerts user if it fails to get a URL

V1.1.1
(Minor update)
Added ability to use a NickName in the message.

V1.2
Doesn't depend on Curl any more, works with Curl or Wget
Displays and error and usage when no URL is given
Included README and INSTALL files

V1.3
Rewritten so that you can include a message/description with the link

lemoicavalier

13 years ago

A few other places where I'd love to be able to use this: Kopete, Konqueror, probably KMail and maybe KNode (newsgroup users tend to be a little paranoic :D)

Report

aerdogan

13 years ago

#!/bin/bash
PORT=$1
SERVER=$2
TARGET=$3

NICK=$5

export URL="$4"
TINYURL="$(curl -s -i http://tinyurl.com/create.php?url=$URL|grep "The following URL" -A3|tail -1|awk -F\> '{print $3}'|sed 's,</b,,')"
echo $@
echo $TINYURL
dcop $PORT default say $SERVER "$TARGET" "$5: $TINYURL"

Report

op4latino

13 years ago

Heh, nice. I don't have curl installed and I didn't feel like install it, so I changed the curl command for wget and it worked

wget -T10 -t2 -qO- http://tinyurl.com/create.php?url=$URL|grep "The following URL" -A3|ta.....

Report

C

stdin

13 years ago

The script now checks for curl and used wget if it's not found, thanks :)

Report

C

stdin

13 years ago

Thanks for the idea, it's now been added to the script :)

Report

13 years ago

v1.0
1st release

V1.1
Now uses env
Now checks for an argument (URL)
Now alerts user if it fails to get a URL

V1.1.1
(Minor update)
Added ability to use a NickName in the message.

V1.2
Doesn't depend on Curl any more, works with Curl or Wget
Displays and error and usage when no URL is given
Included README and INSTALL files

V1.3
Rewritten so that you can include a message/description with the link

12345678910
product-maker Base: 4 x 5.0 Ratings
Be the first to comment
ngrocott
Dec 09 2009
File (click to download) Version Description PackagetypeArchitectureRelease Channel Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
1.3
updated Jun 26 2007
added Jun 14 2007
downloads 24h
0
mediaviews 24h 0
pageviews 24h 2
System Tags app software