Re: [Factor-talk] Errata
Hi Michele, Below is a "file copy" program that can be deployed and works. I don't know if it differs from your requirements, but you might find it useful to look through: http://paste.factorcode.org/paste?id=2334 Best, John. On Wed, Jul 27, 2011 at 8:24 AM, John Benediktsson wrote: > When I tried to load your file in the Factor listener (e.g., "USE: > file-copier"), I got a few errors (press F3 to see them). The > following minor changes fixed it for me: > > $ diff ~/Downloads/file-copier.factor file-copier.factor > 105,106c105,106 > < [ g-source get file-name g-destination set ] > < [ dup second g-destination set ] > --- >> [ drop g-source get file-name g-destination set ] >> [ second g-destination set ] > 114c114 > < g-destination get dup exists? > --- >> g-destination get exists? > 116c116 > < file-info directory? > --- >> g-destination get file-info directory? > > Hope that helps, > Best, > John. > > On Wed, Jul 27, 2011 at 3:29 AM, Michele Pes wrote: >> >> Hi, >> xml-validator now correctly deploy, excuse me for trivial error. >> File copier correctly deploy, but immediately exit with a run-time error. >> When I run it as script, no errors are shown. >> Please help, >> michele pes >> >> >> -- >> Got Input? Slashdot Needs You. >> Take our quick survey online. Come on, we don't ask for help often. >> Plus, you'll get a chance to win $100 to spend on ThinkGeek. >> http://p.sf.net/sfu/slashdot-survey >> ___ >> Factor-talk mailing list >> Factor-talk@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/factor-talk > -- Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
Re: [Factor-talk] Errata
When I tried to load your file in the Factor listener (e.g., "USE: file-copier"), I got a few errors (press F3 to see them). The following minor changes fixed it for me: $ diff ~/Downloads/file-copier.factor file-copier.factor 105,106c105,106 < [ g-source get file-name g-destination set ] < [ dup second g-destination set ] --- > [ drop g-source get file-name g-destination set ] > [ second g-destination set ] 114c114 < g-destination get dup exists? --- > g-destination get exists? 116c116 < file-info directory? --- > g-destination get file-info directory? Hope that helps, Best, John. On Wed, Jul 27, 2011 at 3:29 AM, Michele Pes wrote: > > Hi, > xml-validator now correctly deploy, excuse me for trivial error. > File copier correctly deploy, but immediately exit with a run-time error. > When I run it as script, no errors are shown. > Please help, > michele pes > > > -- > Got Input? Slashdot Needs You. > Take our quick survey online. Come on, we don't ask for help often. > Plus, you'll get a chance to win $100 to spend on ThinkGeek. > http://p.sf.net/sfu/slashdot-survey > ___ > Factor-talk mailing list > Factor-talk@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/factor-talk -- Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
[Factor-talk] Errata
Hi, xml-validator now correctly deploy, excuse me for trivial error. File copier correctly deploy, but immediately exit with a run-time error. When I run it as script, no errors are shown. Please help, michele pes -- Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey ___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk
[Factor-talk] Deployment options
Hi factorers, I'm now trying to deploy this mini factor script. I tried with all supports enabled but no way. What are my errors? thanks in advance, michele pes USING: kernel sequences ; FROM: namespaces => get ; FROM: command-line => command-line ; FROM: io => write ; FROM: io.files => exists? ; FROM: xml => file>xml ; FROM: system => exit ; IN: xml-validator "Xml File Validator v1.0 by Mike P. '81\n\n" write command-line get dup length 1 = [ first dup exists? [ file>xml "File is OK." write 0 exit ] [ drop "File not found." write 2 exit ] if ] [ "Please enter a XML file." write 1 exit ] if-- Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey___ Factor-talk mailing list Factor-talk@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/factor-talk