New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Win32 commandline Squeak start-up script ignored #655
Comments
On 2022-09-30, at 11:01 PM, Alan Dao ***@***.***> wrote:
I'm trying to run a Smalltalk script on VM start-up on Windows. It looks like GNU/Linux is able to do it with this command:
../cogspur/squeak Cuis5.0-4426 -s ../scripts/setUpEnvironment.st
Hmph, that's not how I'd expect to run it; normally I just add the script name after the image name. It's been that way forever.
However, the start-up script is ignored when I try this equivalent command on Windows:
cogspur\Squeak.exe Cuis5.0-4426.image -s ../scripts/setUpEnvironment.st
Is there a Windows equivalent way to run a script on VM start-up?
I don't do windows but maybe just try without the -s ?
tim
--
tim Rowledge; ***@***.***; http://www.rowledge.org/tim
Useful random insult:- Looks for the "Any" key.
|
I’ve also tried without the -s flag and it didn’t work either :( |
So you used Also, in the past, the script sometimes needed to be an absolute path, maybe try that too? |
You must use SqueakConsole.exe; Windows is badly broken like that. Command line arguments are not passed along for Squeak.exe. When the system is running you can check that the arguments are available via getSystemAttribute: and senders (eg Squeak has SmalltalkImage>>rawArguments and SmalltalkImage>>arguments; not sure what Cuis provides). |
I had to try that VM a while back, hoping to get a headless server system runnng and it still insisted on opening a window. Very annoying.
On 2022-10-03, at 6:33 AM, Eliot Miranda ***@***.***> wrote:
You must use SqueakConsole.exe; Windows is badly broken like that. Command line arguments are not passed along for Squeak.exe.
When the system is running you can check that the arguments are available via getSystemAttribute: and senders (eg Squeak has SmalltalkImage>>rawArguments and SmalltalkImage>>arguments; not sure what Cuis provides).
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.
tim
--
tim Rowledge; ***@***.***; http://www.rowledge.org/tim
"How many Motie Mediators does it take to chage a lightbulb?”
"Are you insane? Only Crazy Eddie would want to change *anything*!"
|
There was a bit of discussion relating to thing in the main squeak-dev mailing list back in July, subject line "headful evaluation of script, supplied on the command line, with Squeak 6" It's faintly possible some of that might help you.
On 2022-10-02, at 11:21 PM, Alan Dao ***@***.***> wrote:
I’ve also tried without the -s flag and it didn’t work either :(
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.
tim
--
tim Rowledge; ***@***.***; http://www.rowledge.org/tim
Useful random insult:- During evolution his ancestors were in the control group.
|
So, I checked the available system attributes w/ Thanks for the help! |
I'm trying to run a Smalltalk script on VM start-up on Windows. It looks like GNU/Linux is able to do it with this command:
../cogspur/squeak Cuis5.0-4426 -s ../scripts/setUpEnvironment.st
However, the start-up script is ignored when I try this equivalent command on Windows:
cogspur\Squeak.exe Cuis5.0-4426.image -s ../scripts/setUpEnvironment.st
Is there a Windows equivalent way to run a script on VM start-up?
The text was updated successfully, but these errors were encountered: