Giving a script to squeak

Bert Freudenberg bert at freudenbergs.de
Tue Nov 20 16:15:34 UTC 2007


You have to give a full path. Squeak does not know about Unix's idea  
of a current working directory.

- Bert -

On Nov 20, 2007, at 17:02 , Damien Cassou wrote:

> Hi,
>
> I can't pass a script to squeak and get it executed:
>
> $ cat test.sq
> Transcript cr; show: 'Hello, world'.
> $ squeak Squeak3.9-final-7067.image test.sq &
>
> Results in:
>
> CodeLoader(Object)>>error:
> 	Receiver: a CodeLoader
> 	Arguments and temporary variables:
> 		aString: 	'No content to install'
> 	Receiver's instance variables:
> 		baseURL: 	''
> 		sourceFiles: 	an Array(a HTTPDownloadRequest)
> 		segments: 	nil
> 		publicKey: 	nil
>
> CodeLoader>>installSourceFile:
> 	Receiver: a CodeLoader
> 	Arguments and temporary variables:
> 		aStream: 	nil
> 		contents: 	nil
> 		trusted: 	nil
> 	Receiver's instance variables:
> 		baseURL: 	''
> 		sourceFiles: 	an Array(a HTTPDownloadRequest)
> 		segments: 	nil
> 		publicKey: 	nil
>
> [] in CodeLoader>>installSourceFiles {[:req | self installSourceFile:
> req contentStream]}
> 	Arguments and temporary variables:
> 		req: 	a HTTPDownloadRequest
>
> Array(SequenceableCollection)>>do:
> 	Receiver: an Array(a HTTPDownloadRequest)
> 	Arguments and temporary variables:
> 		aBlock: 	[] in CodeLoader>>installSourceFiles {[:req | self
> installSourceFile: r...etc...
> 		index: 	1
> 		indexLimiT: 	1
> 	Receiver's instance variables:
> an Array(a HTTPDownloadRequest)
>
>
> --- The full stack ---
> CodeLoader(Object)>>error:
> CodeLoader>>installSourceFile:
> [] in CodeLoader>>installSourceFiles {[:req | self installSourceFile:
> req contentStream]}
> Array(SequenceableCollection)>>do:
>  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> CodeLoader>>installSourceFiles
> ProjectLauncher>>startUpAfterLogin
> ProjectLauncher>>startUp
> [] in AutoStart class>>startUp: {[launcher startUp]}
> ...
>
> -- 
> Damien Cassou
>




More information about the Squeak-dev mailing list