Running from command line
Hi,
when I try to initiate a scraping session using the following command line,
the console is invoked and the script loaded, but not run. I'd actually prefer to just
run the script without opening the console.
Is this possible with a different command line switch?
Thanks.
D:\Program Files\screen-scraper basic edition>".\jre\bin\java.exe" -jar screen-scraper.jar "TEST.sss"
Actually, when you try to
Actually, when you try to invoke screen-scraper from the command line, you should pass it the actual session name as it appears in the workbench, and not a file name to a path on your harddrive, such as "TEST.sss" or "projects\TEST.sss".
You can try to ensure that it's catching the target session's name by explicitly using the "-s" switch in front of your session's name.
Tim
Thanks, but this is the
Thanks, but this is the result I get from that.....
--------------
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
D:\Program Files\screen-scraper basic edition>dir
Volume in drive D is XP_Data
Volume Serial Number is 4215-4D80
Directory of D:\Program Files\screen-scraper basic edition
09/06/2009 11:58 AM .
09/06/2009 11:58 AM ..
24/03/2009 08:24 AM .install4j
10/03/2009 10:38 AM 65,536 bsfactivescriptengine.dll
10/03/2009 10:38 AM 65,536 bsfactivescriptengine_g.dll
24/03/2009 09:09 AM cachedir
24/03/2009 08:24 AM doc
10/03/2009 10:40 AM import
10/03/2009 10:40 AM input
10/03/2009 10:38 AM 217,088 jie.dll
24/03/2009 08:24 AM 0 jmimemagic.log
24/03/2009 08:24 AM jre
24/03/2009 08:24 AM lib
24/03/2009 08:24 AM license
24/03/2009 08:24 AM locks
07/06/2009 12:54 PM log
10/03/2009 10:38 AM 401,462 msvcp60.dll
10/03/2009 10:40 AM output
24/03/2009 08:24 AM resource
10/03/2009 10:40 AM 366,592 screen-scraper.exe
10/03/2009 10:38 AM 1,082,266 screen-scraper.jar
10/06/2009 04:18 PM 9 screen-scraper.vmoptions
10/03/2009 10:40 AM 367,616 uninstall.exe
24/03/2009 08:24 AM update
28/05/2009 08:27 PM 69,991 Watchlists Scraping Session (Scraping Session).sss
~snip~
23 File(s) 2,675,282 bytes
16 Dir(s) 9,506,267,136 bytes free
D:\Program Files\screen-scraper basic edition>".\jre\bin\java.exe" -jar screen-scraper.jar -s "Watchlists Scraping Session"
Initializing screen-scraper...
Sorry, I couldn't find a script or scraping session with the name "Watchlists Scraping Session". Please check the name and try again.
D:\Program Files\screen-scraper basic edition>".\jre\bin\java.exe" -jar screen-scraper.jar -s "Watchlists Scraping Session (Scraping Session)"
Initializing screen-scraper...
Sorry, I couldn't find a script or scraping session with the name "Watchlists Scraping Session (Scraping Session)". Please check the name and try again.
D:\Program Files\screen-scraper basic edition>".\jre\bin\java.exe" -jar screen-scraper.jar -s "Watchlists Scraping Session (Scraping Session).sss"
Initializing screen-scraper...
Sorry, I couldn't find a script or scraping session with the name "Watchlists Scraping Session (Scraping Session).sss". Please check the name and try again.
---------------
If I manually open screen-scraper and import the scraping session I can see that the scraping session name is "Watchlists Scraping Session".
Where does it need to be, to be found? I've tried all likely sub-folders so-far without success.
Thank you.
OK, I think I've finally
OK, I think I've finally gotten it to work.
The scraping session has to be loaded in the console, and the console then closed. I had been expecting the program to load the session being run, but I gather that all required sessions have to be preloaded before the command line option will work.
Cheers.