Jump to content




Automatically Update Pastebin Programs


  • You cannot reply to this topic
21 replies to this topic

#21 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

Posted 13 January 2014 - 02:39 PM

 AgentE382, on 13 January 2014 - 12:41 PM, said:

Download my Pastebin API and put it in a file called "pb", with
pastebin get 5SJ0d1mV pb
. Then, put this in a file called "update" by typing
pastebin get UdtTvRxN update
. Use it like this: update <username> <password> It will download the latest version of all of your Pastebin pastes into the current directory.

If you want it to run every time your computer reboots, create a file named "startup" that just has this in it: update <your pastebin username> <your pastebin password>

Note that I hacked this together in like 5 minutes, so there's absolutely no error handling and it may not work.

You'd actually need a shell.run call, not just the string you'd directly put into the shell.

However, auto-updating from the web on every startup is a Bad Plan.

#22 AgentE382

  • Members
  • 119 posts

Posted 13 January 2014 - 03:17 PM

 Lyqyd, on 13 January 2014 - 02:39 PM, said:

 AgentE382, on 13 January 2014 - 12:41 PM, said:

Download my Pastebin API and put it in a file called "pb", with
pastebin get 5SJ0d1mV pb
. Then, put this in a file called "update" by typing
pastebin get UdtTvRxN update
. Use it like this: update <username> <password> It will download the latest version of all of your Pastebin pastes into the current directory.

If you want it to run every time your computer reboots, create a file named "startup" that just has this in it: update <your pastebin username> <your pastebin password>

Note that I hacked this together in like 5 minutes, so there's absolutely no error handling and it may not work.

You'd actually need a shell.run call, not just the string you'd directly put into the shell.

However, auto-updating from the web on every startup is a Bad Plan.
Definitely. I've got a much better system, but I kinda' stopped working on it. I'll have to finish it up and post it on the forums.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users