Putty log file location
- VolkerHalle
- Topic Author
- Visitor
14 years 9 months ago #4791
by VolkerHalle
Putty log file location was created by VolkerHalle
I normally enable the Putty log file for the Putty console terminal to cause all console messages etc. to be logged - just in case something happens to OpenVMS and has to be diagnosed.
When doing this with the Putty console terminal started by FreeAXP, I had to look around quite a while, until I finally found the Putty.log file under C:\Windows\SysWOW64 - running Windows 7 Enterprise.
Could Putty be started with the FreeAXP install directory as the 'default directory' ?
I also recognized, that all the console messages will automatically be included in the ALPHA.LOG FreeAXP emulator log file. While this seems to be a good idea, it might cause problems, when emulating a real Alpha system, where noone was watching the console terminal before and where lots of messages where being output in 'normal' operating mode.
Volker.
When doing this with the Putty console terminal started by FreeAXP, I had to look around quite a while, until I finally found the Putty.log file under C:\Windows\SysWOW64 - running Windows 7 Enterprise.
Could Putty be started with the FreeAXP install directory as the 'default directory' ?
I also recognized, that all the console messages will automatically be included in the ALPHA.LOG FreeAXP emulator log file. While this seems to be a good idea, it might cause problems, when emulating a real Alpha system, where noone was watching the console terminal before and where lots of messages where being output in 'normal' operating mode.
Volker.
Please Log in or Create an account to join the conversation.
- Bruce Claremont
- Topic Author
- Visitor
14 years 9 months ago #4792
by Bruce Claremont
Replied by Bruce Claremont on topic RE: Putty log file location
Thanks for the feedback. The best way to default the location of the PuTTY log would be with a command line switch on the PuTTY call within the FreeAXP configuration file. However, I do not see such an option available in PuTTY.
Barring that, the second best option is to use the Change Settings option in PuTTY the first time it launches the FreeAXP console, configure PuTTY to your specifications, and then save the changes. Future sessions will then launch with your save changes. I'll make a note to add this suggestion to the user guide.
Barring that, the second best option is to use the Change Settings option in PuTTY the first time it launches the FreeAXP console, configure PuTTY to your specifications, and then save the changes. Future sessions will then launch with your save changes. I'll make a note to add this suggestion to the user guide.
Please Log in or Create an account to join the conversation.
- VolkerHalle
- Topic Author
- Visitor
14 years 9 months ago #4793
by VolkerHalle
Replied by VolkerHalle on topic RE: consider to start Putty with default directory
Bruce,
if I look at the Putty console terminal process started for PersonalAlpha with Process Explorere (-> properties -> image), I see a default directory string - at least on Windows XP - which matches the PersonalAlpha install directory.
I couldn't see this on WIndows 7 Enterprise with Process Explorer.
This observation seems to imply, that there should be some way to start a process with a given default directory string. So if you can figure out that parameter, it would be nice, if Putty is actually started with the FreeAXP install directory as the default directory.
Volker.
if I look at the Putty console terminal process started for PersonalAlpha with Process Explorere (-> properties -> image), I see a default directory string - at least on Windows XP - which matches the PersonalAlpha install directory.
I couldn't see this on WIndows 7 Enterprise with Process Explorer.
This observation seems to imply, that there should be some way to start a process with a given default directory string. So if you can figure out that parameter, it would be nice, if Putty is actually started with the FreeAXP install directory as the default directory.
Volker.
Please Log in or Create an account to join the conversation.
- Bruce Claremont
- Topic Author
- Visitor
14 years 9 months ago #4794
by Bruce Claremont
Replied by Bruce Claremont on topic RE: Serial Logging
If there is a way to launch PuTTY with logging enabled from the command line, there are lots of people on the Internet that would like to learn about it, including me! The best explanation I've found regarding enabling PuTTY logging requires a registry tweak:
johnstanfield.com/?p=178
One of our development goals for FreeAXP and Avanti is to stay out of the Windows Registry as much as possible, so we're not going to add a registry modification for PuTTY.
However, in discussing this issue with our chief hardware illusionist, there is another option that may serve your purpose equally well. It is feasible to add a serial log to each serial port (OPAO and TTA0). It can be accomplished by adding the following code to the FreeAXP configuration file.
< class='quote' style='width:400px;white-space:nowrap;overflow:auto'><code style='white-space:nowrap'>
serial0 = i16550
{
s0_log = logfile
{
filename="\BURNER\OPA0.log"
}
s0_tn = telnet
{
port = 9000;
wait = true;
action = """C:\Program Files\FreeAXP\putty.exe"" telnet://localhost:9000"
}
}
<br><br><br></code>
I'll include this information in the next set of Release Notes.
johnstanfield.com/?p=178
One of our development goals for FreeAXP and Avanti is to stay out of the Windows Registry as much as possible, so we're not going to add a registry modification for PuTTY.
However, in discussing this issue with our chief hardware illusionist, there is another option that may serve your purpose equally well. It is feasible to add a serial log to each serial port (OPAO and TTA0). It can be accomplished by adding the following code to the FreeAXP configuration file.
< class='quote' style='width:400px;white-space:nowrap;overflow:auto'><code style='white-space:nowrap'>
serial0 = i16550
{
s0_log = logfile
{
filename="\BURNER\OPA0.log"
}
s0_tn = telnet
{
port = 9000;
wait = true;
action = """C:\Program Files\FreeAXP\putty.exe"" telnet://localhost:9000"
}
}
<br><br><br></code>
I'll include this information in the next set of Release Notes.
Please Log in or Create an account to join the conversation.
- VolkerHalle
- Topic Author
- Visitor
14 years 9 months ago #4795
by VolkerHalle
Replied by VolkerHalle on topic RE: Putty log file location
Bruce,
thanks for showing another alternative on logging the output of the serial port(s).
I don't need a 'registry hack' to enable Putty logging, this I can easily do myself at any time Putty has been started. I normally specify console_&Y_&M_&D.log as the log file name. I would have expected to find the log file in the FreeAXP install directory, but in this case I had to go search for it... - I could have used Browse... to locate the directory.
Example:
If you are in directory C:\X and start Putty with > C:\Program Files\Putty.exe and then try to turn on logging, the 'default directory' for the log file becomes C:\X - check with Browse. So all I'm trying to ask for is: before starting Putty do the equivalent of $ SET DEFAULT C:\Program Files\FreeAXP - sorry, I'm not a Windows programmer...
By switching Session Logging from 'Printable Output' to 'None' and back to 'Printable Output' I can even reset the log file while Putty is running. And the new file will have a new name (based on the current date). This becomes useful, if running an emulator in production mode and you don't want to have to reboot to reset the log file.
Thanks,
Volker.
thanks for showing another alternative on logging the output of the serial port(s).
I don't need a 'registry hack' to enable Putty logging, this I can easily do myself at any time Putty has been started. I normally specify console_&Y_&M_&D.log as the log file name. I would have expected to find the log file in the FreeAXP install directory, but in this case I had to go search for it... - I could have used Browse... to locate the directory.
Example:
If you are in directory C:\X and start Putty with > C:\Program Files\Putty.exe and then try to turn on logging, the 'default directory' for the log file becomes C:\X - check with Browse. So all I'm trying to ask for is: before starting Putty do the equivalent of $ SET DEFAULT C:\Program Files\FreeAXP - sorry, I'm not a Windows programmer...
By switching Session Logging from 'Printable Output' to 'None' and back to 'Printable Output' I can even reset the log file while Putty is running. And the new file will have a new name (based on the current date). This becomes useful, if running an emulator in production mode and you don't want to have to reboot to reset the log file.
Thanks,
Volker.
Please Log in or Create an account to join the conversation.
- Bruce Claremont
- Topic Author
- Visitor
14 years 9 months ago #4796
by Bruce Claremont
Replied by Bruce Claremont on topic RE: Putty log file location
Thanks for the clarification. I've added this issue to our enhancements list.
Please Log in or Create an account to join the conversation.
Moderators: iamcamiel
Time to create page: 0.203 seconds