Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

curl

  • Loading branch information...
commit b8881bbd745b1fb39567d465104dbfdfb79f0f6b 1 parent 5c32892
@janlelis authored
Showing with 15 additions and 3 deletions.
  1. +15 −3 internet_curl.sh
View
18 internet_curl.sh
@@ -1,11 +1,23 @@
#!/bin/sh
# [Gedit Tool]
# Name=[internet] curl
-# Shortcut=<Control><Alt>u
# Applicability=all
-# Output=new-document
+# Output=nothing
# Input=nothing
# Save-files=nothing
-curl `zenity --entry`
+# Creates a new document and downloads the entered URL (if valid)
+# (depends on curl, zenity)
+#
+# Save: Nothing
+# Input: Nothing
+# Output: Nothing
+#
+# by Jan Lelis (mail@janlelis.de), edited by (you?)
+
+params=`zenity --entry --title='curl' --text='params:' --width=500`
+
+if [ ! -z "$params" ]; then
+ curl "$params" | zenity --text-info --title="curl $params" --width=1000 --height=700
+fi
Please sign in to comment.
Something went wrong with that request. Please try again.