Advertisement
jmarler

/usr/local/bin/pastebin.sh

Jun 4th, 2013
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. USERKEY=`curl -s -d api_dev_key=XXXXXX -d api_user_name=XXXX -d api_user_password=XXXX http://pastebin.com/api/api_login.php`
  4. curl --data-urlencode api_paste_code@$1 -d api_user_key=$USERKEY -d api_dev_key=XXXXXX -d api_paste_name=$1 -d api_option=paste -d api_paste_private=1 http://pastebin.com/api/api_post.php
  5. echo ""
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement