[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[amibroker] Re: Automation -- More than 'URLGet'



PureBytes Links

Trading Reference Links

--- In amibroker@xxxxxxxxxxxxxxx, Salil V Gangal <salil_gangal@xxxx>
wrote:
> 
> Friends,
> 
> Newletter (http://www.amibroker.com/newsletter/02-2001.html)
describes how to use automation to download the data at a URL and to
process it. [..]
> BTW, Is 'Guru' automation available yet ? I read the document, I
don't think it is ...
> 

I use script in BAT file in OS Windows whit install cygwin.

rem ========start for Warsow Trade ==============
rem == I discribe begin line by :1, :2, etc...
rem == 
:1
wget  -r --output-file=wget_bossa.log --directory-prefix=_pobrane
--continue --proxy=off  --dont-remove-listing --no-parent --tries=0
http://bossa.pl/pub/ciagle/mstock/sesjacgl/sesjacgl.prn

:2
cd _pobrane\bossa.pl\pub\ciagle\mstock\sesjacgl
:3

tail -n1 sesjacgl.prn > ogon.txt 

:4
cat ogon.txt
:5

gawk -F: 'BEGIN { FS = "," } ; { print "mv sesjacgl.prn
../../../../../../../gpw/" $2 ".prn\n"}'  ogon.txt > xx.bat
:6

echo mv 2*.prn ../../../../../../../gpw/ >> xx.bat
:7 

chmod +x xx.bat
:8

call xx.bat
rem ============ end script =====================

If uou use programs 'cron' or 'at' it's automat scrip. 

Sylwester Szady


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/sO0ANB/LIdGAA/ySSFAA/GHeqlB/TM
---------------------------------------------------------------------~->

Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx 
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/