loading works for me, are you sure the file exists and it has scheme code in it??
hkt$ echo "(define foo 123)" >> /tmp/foo.scm hkt$ cm --load "/tmp/foo.scm" --eval "(list foo foo)" --batch --quiet foo(123 123)Bye! hkt$ try using the absolute path to the file, maybe thats the problem. also try enclosing the file in "" as i did On Apr 20, 2009, at 1:29 PM, Ben McAllister wrote: > Hi - > > Build went very smoothly. However, I'm getting an error trying to > load a file: > > william-mcallisters-macbook-pro:bin ben$ ./cm --load ../../../../ > Documents/csound/test.lisp > JUCE v1.46 > JUCE v1.46 (c) 2009 Julian Storer > SndLib 20.11 (c) 2009 William Schottstaedt > /\\\ > ---\\\--------- > ----\\\-------- > ----/\\\------- Common Music 3.2.4 > ---/--\\\------ > --/----\\\----- > / \\\/ > > ;io-error open-input-file: can't open /Applications/cm/src/ > cm.lisp, ../../../../Documents/csound/test.lisp[2] > io-error > cm> > > Any ideas? > > Thanks! > b > > On Mon, Apr 20, 2009 at 3:17 AM, Heinrich Taube <[email protected]> > wrote: > I've recently moved to Mac and am trying to do the same with CM3. > i.e you cannot pass the mac 'cm' binary a file to evaluate i.e. > > actually i added command line options to the cm app this past > weekend, including --load, --eval and --batch options. you can > provide multiple --eval and --load options, they are processes in a > left-to-right manner. here is the set i have so far: > > hkt$ cm --help > Usage: cm [options] > options: > --version print version and exit > --help print help and exit > --load <file> load file > --eval <expr> evaluate expression > --batch process options and exit > --quiet don't print startup banner > > i also completly rewrote the read-loop, it now handles multi-line > input much better. if you are using the cm console app you should > definately do a svn update. i removed the 'q' option for quitting, > use the (quit) function to quit instead. > > > > > > -- > Listen Faster: http://www.listenfaster.com - audio, film and > technology > > _______________________________________________ > Cmdist mailing list > [email protected] > http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist _______________________________________________ Cmdist mailing list [email protected] http://ccrma-mail.stanford.edu/mailman/listinfo/cmdist
