Automated File Submission for Linux Users

General Discussion Area
Post Reply
Jorudencia
Posts: 2
Joined: Wed Dec 05, 2007 2:35 am

Automated File Submission for Linux Users

Post by Jorudencia »

Hi everyone,

I play WoW under Linux using WINE, and it occurred to me to write a short cron script to automate the uploading of my census data. I figured I would post it here, in case anyone might find it useful. Note: it relies on the curl utility which should be available in most distros.

Code: Select all

#! /bin/bash
#
# Set the variables below to the appropriate values for your install.
#
DATA_FILE=/home/jo/.wine/drive_c/WoW/wtf/Account/XXXXXXX/SavedVariables/CensusPlus.lua
COOKIES_FILE=/home/jo/.mozilla/firefox/u3okhyic.default/cookies.txt
OUTPUT_FILE=/home/jo/censusplus_submit_result.html
LOG_FILE=/home/jo/censusplus_submit.log

/usr/bin/curl -v -b $COOKIES_FILE \
              -F userfile=@$DATA_FILE \
              http://www.warcraftrealms.com/receivefile.php \
              > $OUTPUT_FILE 2>>$LOG_FILE


User avatar
Tartara
Posts: 88
Joined: Tue Dec 20, 2005 10:28 am
Location: Tucson, AZ

Post by Tartara »

That would probably work for Mac users, too. I'll try it out later today.

Jorudencia
Posts: 2
Joined: Wed Dec 05, 2007 2:35 am

Post by Jorudencia »

Cool. Let me know how it works out.

Post Reply