SKG Web

5 - Auto-loading of SKG.lua from directory

What is the enhancement in mind? How should it look and feel?

It would be a real timesaver if this could auto-load an SKG.lua file that was put in a specific directory, like /skg_web/upload/.  That way I could script/schedule my SKG.lua to automagically be uploaded to my webserver each morning, and not have to worry about forgetting it.

Please provide any additional information below.

I'm thinking about this the way that Roster can take the guild profiles that are automatically uploaded by UniAdmin.  That was very handy.

Basically, I'm forgetful.  And to be honest, even if I wasn't forgetful, I don't want this to become a chore that I eventually stop doing out of laziness.  It would be great if I could make the computer do the work for me.  I win, my guild wins.

User When Change
Jabouty Wed, 20 May 2009 03:02:32 Changed status from Replied to Accepted
guido666 Tue, 19 May 2009 16:30:01 Changed status from Waiting to Replied
Jabouty Mon, 18 May 2009 21:37:19 Changed status from Replied to Waiting
Jabouty Mon, 18 May 2009 21:37:13 Changed status from Waiting to Replied
Jabouty Fri, 15 May 2009 04:46:58 Changed status from Started to Waiting
Jabouty Tue, 05 May 2009 04:10:29 Changed status from Replied to Started
Jabouty Mon, 04 May 2009 21:39:07 Changed status from Waiting to Replied
Jabouty Mon, 04 May 2009 21:38:03 Changed status from New to Waiting
guido666 Mon, 04 May 2009 21:07:40 Create

You must login to post a comment. Don't have an account? Register to get one!

  • Avatar of guido666 guido666 Tue, 16 Jun 2009 14:28:42

    Any progress?

  • Avatar of guido666 guido666 Wed, 20 May 2009 05:52:19

    No problem. I appreciate your effort, it will same me, and hopefully others, a lot of time.

  • Avatar of Jabouty Jabouty Wed, 20 May 2009 03:02:22

    just an update, having troubles getting this to parse correctly off the webserver. I keep losing the data in the class handler. This will take abit longer than I expected and probably won't make the release push.

  • Avatar of guido666 guido666 Tue, 19 May 2009 19:34:22

    You could probably create these two files, and just put them in a folder in the .zip, and have them move them onto their system.

  • Avatar of guido666 guido666 Tue, 19 May 2009 17:21:05

    Step 2 is supposed to be several lines, but it keeps squishing them together...

    • open ftp.YOUR_SITE_HERE.com
    • YOUR_FTP_USERNAME
    • YOUR_FTP_PASSWORD
    • cd YOUR_HOSTING_DIRECTORY/skg_web/upload/
    • put "C:\Program Files\World of Warcraft\WTF\Account\YOUR_ACCOUNT_NAME\SavedVariables\SKG.lua"
    • quit
  • Avatar of guido666 guido666 Tue, 19 May 2009 17:18:03
    1. Make a new folder in C: named SKGDailyUpload ("C:\SKGDailyUpload"), and navigate inside it.
    2. Make a text file named SKG.FTP ("C:\SKGDailyUpload\SKG.FTP"), that includes the following lines, edited to fit your site (Directory and file names ARE case sensitive): open ftp.YOUR_SITE_HERE.com YOUR_FTP_USERNAME YOUR_FTP_PASSWORD cd YOUR_HOSTING_DIRECTORY/skg_web/upload/ put "C:\Program Files\World of Warcraft\WTF\Account\YOUR_ACCOUNT_NAME\SavedVariables\SKG.lua" quit
    3. Make a text file named SKGDailyUpload.cmd ("C:\SKGDailyUpload\SKGDailyUpload.cmd"), that contains the following line: ftp -s:C:\SKGDailyUpload\SKG.FTP
    4. In Windows XP, go to Start > All Programs > Accessories > System Tools > Schedule Tasks
    5. Click Add Scheduled Task
    6. Click Browse, and choose the SKGDailyUpload.cmd script ("C:\SKGDailyUpload\SKGDailyUpload.cmd").
    7. Set it to perform this task Daily.
    8. Set an appopriate time. A good time is probably early in the morning, after you would always be offline, like 6AM.
    9. Hit Finish to save it.
    10. Your task should now show up in the Scheduled Tasks window, and you can test it by right-clicking it and choosing Run. You can also test the batch script by double clicking SKGDailyUpload.cmd ("C:\SKGDailyUpload\SKGDailyUpload.cmd"), and making sure it uploads the file. For testing, you can add a second line to it that simply says PAUSE, that will cause it to keep the window open until a key is pressed.
  • Avatar of guido666 guido666 Tue, 19 May 2009 16:30:01

    Yes, I'll get you that step-by-step.

  • Avatar of Jabouty Jabouty Mon, 18 May 2009 21:37:13

    Added this enhancement to the system. Will be in next beta+ release.

  • Avatar of Jabouty Jabouty Fri, 15 May 2009 04:46:43

    I'm working on this now. Can you do me a favor and write up a step by step for 5 year olds on how you would go about setting up the task scheduler to get the file to the server assuming it'll be parked in /skg_web/upload/?

  • Avatar of guido666 guido666 Wed, 06 May 2009 14:30:18

    I'd just set up a Windows Scheduled Task in the Task Scheduler (which is running anyways), to run the FTP console command. No executables needed, already all built into Windows! :-)

Facts

Last updated on
20 May 2009
Reported on
04 May 2009
Status
Accepted - Problem reproduced / Need acknowledged.
Type
Enhancement - A change which is intended to better the project in some way
Priority
Medium - Normal priority.

Reported by

Possible assignees