To all esnipers - This great program is even better if you use a shared directory under linux to snipe with.
Once you have set this up on your linux computer, with a shared 'sniper' directory, you can then simply transfer over the network your 'IAmBiddingOnXxxx.txt' text file (with the bid key, price, and quantity) from your laptop/PC/phone etc… to the linux computer newwork share, and from that point you can then be assured your bidding with eSniper is completely set up for that item. It can be as simple as that.
What to do
1st: Setup a shared directory for your network (via samba etc..) I have set mine to '/media/hdd/esniper'
mkdir sniped #set up a subdirectory in this shared directory called sniped
2nd:
crontab -e
and add the following line to your crontab - remember to change the directory in bold to your shared directory path.
#watch the esniper directory every min to see if a new esniper file has been added to snipe on
#change /media/hdd/esniper to your linux directory path for you shared sniper directory
* * * * * bash /media/hdd/esniper/dirdrop.sh
3rd: We create the dirdrop.sh script file which is run every minute (by cron). This looks for *.txt files and sets up esniper to bid with them. It also moves them into a directory called 'sniped' when they have been processed.
Cut and paste the below script in a text editor and change the bits in bold to match your directory path to your network shared eSniper directory. Then call your changed file 'dirdrop.sh' and drop it into your shared directory. (You might have to make sure its got eXecute permission by using chmod 777 or 555 or whatever you choose (there is a guide on this here : http://webmasterworkshop.com/guides/chmod_guide.shtml) to change it.)
#------------------------------------------------
#!/bin/bash
#echo "Executing dirdrop"
shopt -s nullglob
for file in /media/hdd/esniper/*.txt
do
echo "$file" to be processed
mv "$file" "$file".done #rename the file so no other instance processes it
/usr/bin/esniper -c /media/hdd/esniper/.esniper "$file".done
wait
mv "$file".done /media/hdd/esniper/sniped/
done
exit 0
#-------------------------------------------------------
This script means you have no worries about logging into linux and editing files, calling eSniper etc… you simply set up your bid by cutting and pasting into a .txt file and copy the file into the network share.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
You can even setup something called a WebDav folder which lets you drag and drop files to the folder over the internet.
To do this you would follow the apache guide here. http://httpd.apache.org/docs/2.2/mod/mod_dav.html
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
To all esnipers - This great program is even better if you use a shared directory under linux to snipe with.
Once you have set this up on your linux computer, with a shared 'sniper' directory, you can then simply transfer over the network your 'IAmBiddingOnXxxx.txt' text file (with the bid key, price, and quantity) from your laptop/PC/phone etc… to the linux computer newwork share, and from that point you can then be assured your bidding with eSniper is completely set up for that item. It can be as simple as that.
What to do
1st: Setup a shared directory for your network (via samba etc..) I have set mine to '/media/hdd/esniper'
mkdir sniped #set up a subdirectory in this shared directory called sniped
2nd:
crontab -e
and add the following line to your crontab - remember to change the directory in bold to your shared directory path.
#watch the esniper directory every min to see if a new esniper file has been added to snipe on
#change /media/hdd/esniper to your linux directory path for you shared sniper directory
* * * * * bash /media/hdd/esniper/dirdrop.sh
3rd: We create the dirdrop.sh script file which is run every minute (by cron). This looks for *.txt files and sets up esniper to bid with them. It also moves them into a directory called 'sniped' when they have been processed.
Cut and paste the below script in a text editor and change the bits in bold to match your directory path to your network shared eSniper directory. Then call your changed file 'dirdrop.sh' and drop it into your shared directory. (You might have to make sure its got eXecute permission by using chmod 777 or 555 or whatever you choose (there is a guide on this here : http://webmasterworkshop.com/guides/chmod_guide.shtml) to change it.)
#------------------------------------------------
#!/bin/bash
#echo "Executing dirdrop"
shopt -s nullglob
for file in /media/hdd/esniper/*.txt
do
echo "$file" to be processed
mv "$file" "$file".done #rename the file so no other instance processes it
/usr/bin/esniper -c /media/hdd/esniper/.esniper "$file".done
wait
mv "$file".done /media/hdd/esniper/sniped/
done
exit 0
#-------------------------------------------------------
This script means you have no worries about logging into linux and editing files, calling eSniper etc… you simply set up your bid by cutting and pasting into a .txt file and copy the file into the network share.
You can even setup something called a WebDav folder which lets you drag and drop files to the folder over the internet.
To do this you would follow the apache guide here. http://httpd.apache.org/docs/2.2/mod/mod_dav.html