You are not logged in.
Pages: 1
Installed wgetpaste and trying it out. I can't get the -u option to work.
Tried changing services, same result. Am I possibly missing something?
I can manually apply tinyurl and it works. https://tinyurl.com/l3bqte7
I like the reply function in paste.pound-python.org, but not so much the long URL.
-u, --tinyurl URL convert input url to tinyurl
$ wgetpaste /etc/X11/xorg.conf
Your paste can be seen here: https://paste.pound-python.org/show/sN99mBrUmlG5a4TQDKTL/
$ wgetpaste -tc "cat /etc/X11/xorg.conf"
$ cat /etc/X11/xorg.conf
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 340.76 (buildmeister@swio-display-x86-rhel47-01) Thu Jan 22 12:12:09 PST 2015
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
Screen 1 "Screen1" 1920 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor0"
VendorName "Unknown"
ModelName "Acer H276HL"
HorizSync 30.0 - 80.0
VertRefresh 50.0 - 76.0
Option "DPMS"
EndSection
Section "Monitor"
# HorizSync source: edid, VertRefresh source: edid
Identifier "Monitor1"
VendorName "Unknown"
ModelName "SONY TV"
HorizSync 15.0 - 70.0
VertRefresh 58.0 - 62.0
Option "DPMS"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GT 220"
BusID "PCI:1:0:0"
Screen 0
EndSection
Section "Device"
Identifier "Device1"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce GT 220"
BusID "PCI:1:0:0"
Screen 1
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
Monitor "Monitor0"
DefaultDepth 24
Option "Stereo" "0"
Option "metamodes" "DVI-I-1: 1920x1080 +0+0
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Device1"
Monitor "Monitor1"
DefaultDepth 24
Option "Stereo" "0"
Option "nvidiaXineramaInfoOrder" "DFP-1"
Option "metamodes" "HDMI-0: 1920x1080_60 +0+0"
Option "SLI" "Off"
Option "MultiGPU" "Off"
Option "BaseMosaic" "off"
SubSection "Display"
Depth 24
EndSubSection
EndSection
Your paste can be seen here: http://bpaste.net/show/2ff92ce58942
$ wgetpaste -u /etc/X11/xorg.conf
Your paste can be seen here: ERROR
Last edited by NuSkool (2017-03-20 04:27:45)
Offline
Re-read the helptext.
-u, --tinyurl URL convert input url to tinyurl
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Thanks WorMzy,
And sorry but now I'm more confused. Could you give an example of using the -u option?
I did look at the wgetpaste script in /usr/bin. Something doesn't look right on line 41, but my bash skills are admittedly "just enough to be dangerous".
Offline
It wants a url, not a file path. e.g. pass the url you recieved from the first run:
wgetpaste -u https://paste.pound-python.org/show/sN99mBrUmlG5a4TQDKTL/
Your paste can be seen here: http://tinyurl.com/l8r3gkg
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Ahh, you mean it works just like it says? (feeling pretty dense right now)
My main use case for using wgetpaste would be from the console. I don't copy paste there, so the -u option isn't saving me any typing. I came up with an ugly hack that gives me what I thought the -u option would. Not sure if or how the following 2 additional lines may break stuff in the script, but it's working for me so far.
I put this just before the "exit 0" line.
wget -qO - http://tinyurl.com/api-create.php?url="$URL" > /tmp/url
echo "And or for a shorter URL here:" $(cat /tmp/url)
And the results:
$ wgetpaste /etc/X11/xorg.conf
Your paste can be seen here: https://paste.pound-python.org/show/CJyVU2kRfGwQZyOWnOLx/
And or for a shorter URL here: http://tinyurl.com/k2d87k9
EDIT
To make it to work with the -r option [show url for the raw paste (no syntax highlighting or html)] used this in place of the above edits:
# add url converted to tinyurl
if [[ $RAW ]] && converttoraw; then
echo "And for tinyurl converted raw URL here:" $(wget -qO - http://tinyurl.com/api-create.php?url="$RAWURL")
else
echo "And for tinyurl converted URL here:" $(wget -qO - http://tinyurl.com/api-create.php?url="$URL")
fi
Last edited by NuSkool (2017-03-25 22:07:33)
Offline
Pages: 1