Giving a script to squeak
Hilaire Fernandes
hilaire at ofset.org
Tue Nov 20 19:53:57 UTC 2007
I described it there in the French FAQ,
http://community.ofset.org/index.php/FAQ_d%C3%A9veloppeur_Squeak#Comment_d.C3.A9marrer_l.27image_avec_un_script_en_Smalltalk_.3F
Don't know if the URL will go through.
Hilaire
Damien Cassou a écrit :
> 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]}
> ...
>
More information about the Squeak-dev
mailing list
|