diff options
Diffstat (limited to 'fb')
-rwxr-xr-x | fb | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -7,10 +7,12 @@ # #---------------------------------------------------- # only works if useragent contains libcurl +# Dependencies: python, curl +# Optional: xclip #---------------------------------------------------- '''[cat |] %prog [options] [file1 file2 ...]''' -__version__ = '0.5.1' +__version__ = '0.5.2' __desc__ = ''' Upload/nopaste file/stdin to paste.xinu.at and copy URL to clipboard. ''' @@ -47,7 +49,7 @@ def do_upload(file, extension=None): ], curl_args, ['http://paste.xinu.at/file/do_upload']]), stdout=PIPE).communicate()[0] print url - Popen('echo -n "%s" | nohup &>/dev/null xclip' % url, shell=True) + Popen('echo -n "%s" | nohup >/dev/null xclip 2>&1' % url, shell=True) def delete(id): pw = password() @@ -64,7 +66,7 @@ def delete(id): ),).communicate()[0] def get(id): - print urlopen('http://paste.xinu.at/d/%s' % id).read() + print urlopen('http://paste.xinu.at/%s' % id).read() def merge(seq): merged = [] |