There's a bug in the current image (will be integrated soon) To avoid any issues make sure to add a full url inclusive a scheme (in this case file:/) ${vm} -vm-display-null -vm-sound-null ${path to image} file:/${absolute script path} BTW: you can also specify http:// urls :) best cami On 2012-01-14, at 08:43, Sven Van Caekenberghe wrote:
On 14 Jan 2012, at 03:52, Bernardo Ezequiel Contreras wrote:
Hi,
I'm trying to execute a simple script in headless mode in order to setup some basic settings but it seems not to work right now. I've used this idea a lot to build my images.
Do i have to install some package??
Pharo image: Pharo1.4a#14283 Virtual machine used: CoInterpreter VMMaker.oscog-eem.138 uuid: f9a63bdf-7bbc-4ae5-9634-ecd6fd814c9d Nov 17 2011, StackToRegisterMappingCogit VMMaker.oscog-eem.139 uuid: c2849383-9768-4948-b9b2-a5c22d482b07 Nov 17 2011, r2515 http://www.squeakvm.org/svn/squeak/branches/Cog Platform Name: unix Class browser used (if applicable): Browser
Steps to reproduce: #. ${vm} -vm-display-null -vm-sound-null ${path to image} ${path to the directory that contains the script}/set-up.st
Actual Result: #. it doesn't quit.
Expected Result: #. To save the settings and quit.
=== set-up.st === Author fullName: 'BernardoContreras'.
Smalltalk snapshot: true andQuit: true. ============
Thanks
Make sure that ${path to the directory that contains the script}/set-up.st is absolute. You also need .changes and .sources in the right directory. Is a PharoDebug.log written ?
You could also try to add this to your script (in 1.4) to get more feedback:
NonInteractiveTranscript stdout install. Transcript crShow: 'Starting â¦'.
"â¦"
Sven