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)
10 years ago
v1.0
[li]1st release[/li]
V1.1
[li]Now uses env[/li]
[li]Now checks for an argument (URL)[/li]
[li]Now alerts user if it fails to get a URL[/li]
V1.1.1
(Minor update)
[li]Added ability to use a NickName in the message.[/li]
V1.2
[li]Doesn't depend on Curl any more, works with Curl or Wget[/li]
[li]Displays and error and usage when no URL is given[/li]
[li]Included README and INSTALL files[/li]
V1.3
[li]Rewritten so that you can include a message/description with the link[/li]
10 years ago
v1.0
[li]1st release[/li]
V1.1
[li]Now uses env[/li]
[li]Now checks for an argument (URL)[/li]
[li]Now alerts user if it fails to get a URL[/li]
V1.1.1
(Minor update)
[li]Added ability to use a NickName in the message.[/li]
V1.2
[li]Doesn't depend on Curl any more, works with Curl or Wget[/li]
[li]Displays and error and usage when no URL is given[/li]
[li]Included README and INSTALL files[/li]
V1.3
[li]Rewritten so that you can include a message/description with the link[/li]
openDesktop.org :
lemoicavalier
10 years ago
Report
aerdogan
10 years ago
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
stdin
10 years ago
Report
op4latino
10 years ago
wget -T10 -t2 -qO- http://tinyurl.com/create.php?url=$URL|grep "The following URL" -A3|ta.....
Report
stdin
10 years ago
Report