Welcome, Guest. Please login or register.

Author Topic: Logging Startup and Userstartup-sequence  (Read 3099 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline XDelusionTopic starter

  • Alien Breeder
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 5089
    • Show only replies by XDelusion
    • http://starwarslegacy.net/
Logging Startup and Userstartup-sequence
« on: August 11, 2011, 06:14:30 AM »
I know this has been asked before, but I can not find the post, nor do I recall the solution, but I think Piru answered it.

What I want to know, is if there is a way to log my startup-sequence and my userstartup-sequence.

This way if there are any errors on boot up that I'm not seeing, I can go back and see them.
Earth has a lot of things other folks might want... like the whole planet. And maybe these folks would like a few changes made, like more carbon dioxide in the atmosphere and room for their way of life. - William S. Burroughs
 

Offline Thomas

Re: Logging Startup and Userstartup-sequence
« Reply #1 on: August 11, 2011, 08:00:03 AM »
You can log into the console window if you add set echo on to the beginning of startup-sequence and you can prevent the console window from closing if you remove the endcli command from the end. Or insert ask "press enter" before endcli.

The latter alone will already allow you to read error messages. Both in combination will also show you which command output the message. To stop the log flow you can press any key and continue by deleting the key you entered.

Offline XDelusionTopic starter

  • Alien Breeder
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 5089
    • Show only replies by XDelusion
    • http://starwarslegacy.net/
Re: Logging Startup and Userstartup-sequence
« Reply #2 on: August 11, 2011, 08:08:39 AM »
Thank you much sir, that is a good idea, though I am wondering if it is possible to output the log to a txt file on the hard drive?
Earth has a lot of things other folks might want... like the whole planet. And maybe these folks would like a few changes made, like more carbon dioxide in the atmosphere and room for their way of life. - William S. Burroughs
 

Offline Matt_H

Re: Logging Startup and Userstartup-sequence
« Reply #3 on: August 11, 2011, 12:21:09 PM »
What I like to do in situations like this is boot without startup-sequence, set echo on, as Thomas described, then execute s:startup-sequence. If you append >dh0:logfile it will save the buffer to disk. I don't know if you'll be able to see it on screen while it's executing - there's probably a way, but I'm not sure of the command syntax.

There's also an interactive mode - set interactive on, maybe? It'll ask you to confirm executing each line of the script.
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Logging Startup and Userstartup-sequence
« Reply #4 on: August 11, 2011, 12:44:04 PM »
Quote from: Matt_H;654048
What I like to do in situations like this is boot without startup-sequence, set echo on, as Thomas described, then execute s:startup-sequence. If you append >dh0:logfile it will save the buffer to disk.
Hmm, are you sure? I was under the impression that each command handles redirection by their own.

Quote
There's also an interactive mode - set interactive on, maybe? It'll ask you to confirm executing each line of the script.
I'm fairly sure that there's no such thing.
 

Offline Matt_H

Re: Logging Startup and Userstartup-sequence
« Reply #5 on: August 11, 2011, 03:42:57 PM »
Quote from: Piru;654050
Hmm, are you sure? I was under the impression that each command handles redirection by their own.

Nope, I'm not sure :)

Quote
I'm fairly sure that there's no such thing.

That may not be the right command, but I've done it in the past, somehow. Maybe it was a command line argument for 'execute'?
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show only replies by Piru
    • http://www.iki.fi/sintonen/
Re: Logging Startup and Userstartup-sequence
« Reply #6 on: August 11, 2011, 03:51:24 PM »
Quote from: Matt_H;654074
That may not be the right command, but I've done it in the past, somehow. Maybe it was a command line argument for 'execute'?

Nope. I've reimplemented AmigaOS shell, resident commands, execute and many of the C command for MorphOS and I'm fairly sure I would remember if there was such a feature anywhere in AmigaOS.
 

Offline Matt_H

Re: Logging Startup and Userstartup-sequence
« Reply #7 on: August 11, 2011, 05:19:06 PM »
@ Piru

It's possible I'm imagining things. I'll check my manuals and let you know if I come up with anything.
 

Offline Matt_H

Re: Logging Startup and Userstartup-sequence
« Reply #8 on: August 13, 2011, 02:42:08 PM »
A quick update: set interactive on is the right command, but the feature was only introduced with 3.9 or one of its updates. I confirmed that it's not in 3.1 and Piru confirmed that it's not in 3.5.

So you'll need to have the 3.9 ROM modules kicked in at cold boot (Deneb/Algor FlashROM, custom Kickstart) to use this method.