Page 1 of 1

Is there a way to exit the User-Startup script?

Posted: Fri Jul 13, 2018 8:49 am
by Hypex
I'm slowly transferring all my applications to another system. And in the process filtering out those I need and what assigns are needed in User-Startup. I thought I would break it and continue work later.

The Quit command is used for that. However, I found that although it broke the script, it also broke the Startup-Sequence. Leaving me with a CLI window that wouldn't close and no Workbench.

I tried passing a RC of 5 with Quit but there was no difference. Is there a way to break or exit from a User-Startup script and continue the boot process? :?

Re: Is there a way to exit the User-Startup script?

Posted: Fri Jul 13, 2018 9:53 am
by nbache
Hypex wrote:Is there a way to break or exit from a User-Startup script and continue the boot process? :?
One way that comes to my mind would be to create a label with Lab at the end of User-Startup and then Skip to it.

Best regards,

Niels

Re: Is there a way to exit the User-Startup script?

Posted: Fri Jul 13, 2018 3:27 pm
by thomasrapp
I'd also suggest the Lab / Skip solution for exiting a script.

However, for a migration job like yours I would keep the old script with another name and copy/paste only those sections which shall be executed into the real user-startup file.

Re: Is there a way to exit the User-Startup script?

Posted: Fri Jul 13, 2018 9:03 pm
by Amigo1
Hypex wrote:I'm slowly transferring all my applications to another system. And in the process filtering out those I need and what assigns are needed in User-Startup. I thought I would break it and continue work later.

The Quit command is used for that. However, I found that although it broke the script, it also broke the Startup-Sequence. Leaving me with a CLI window that wouldn't close and no Workbench.

I tried passing a RC of 5 with Quit but there was no difference. Is there a way to break or exit from a User-Startup script and continue the boot process? :?
What about commenting out (with a column ";" ) the passages you do not want/need?

Re: Is there a way to exit the User-Startup script?

Posted: Sat Jul 14, 2018 4:23 am
by Hypex
I also could do it with a Lab and Skip, yes, but I was wondering if there was a way to do it without a work around. In all the years I've used AmigaOS I don't ever recall coming across this problem. So just thought I'd ask. :)

Re: Is there a way to exit the User-Startup script?

Posted: Sat Jul 14, 2018 4:25 am
by Hypex
Amigo1 wrote:What about commenting out (with a column ";" ) the passages you do not want/need?
That's exactly how I started doing it. But when you have a hundred lines to go through, it's gets a but tedious doing semi-colon, down, left, ... ;)