Multiple sessions and their logs
4 posts
• Page 1 of 1
Multiple sessions and their logs
(I originally confused the "session_file" with "log_file" and "SaveSessionOnExit" with "SaveLogOnExit", but now realised the LOG of the session is separate from the SESSION.)
I frequently run two APL sessions in my PC at the same time, one for development, and the other running an application.
To aid this I have two shortcuts on my PC's desktop, one to start an APL development session, the other to run my "ANT" application.
In the registry:-
SaveLogOnExit is set to 1
and
log_file is set to:
C:\Users\Ray\Documents\Dyalog APL-64 18.0 Unicode Files\default.dlf
In my ANT's shortcut, the "target" has 3 entries (shown here as 3 separate lines) :
"C:\Program Files\Dyalog\Dyalog APL-64 18.0 Unicode\dyalog.exe"
start
LOADWS=C:\MiSites\hexserver31
Line one is simply the Dyalog executable (in quotes because of the embedded spaces within the full file path).
Line two is the name of the workspace I initially load, which sets up my pseudo user command. It also acts on my (not Dyalog's) command line parameter "LOADWS" if present.
Line three is that LOADWS parameter. On exit, "start.dws", ⎕LOADs the workspace named in this parameter. "hexserv31" in turn "bootstraps" the ANT application.
To this shortcut I have tried adding a standard Dyalog configuration parameter :
SaveLogOnExit=0
but this does not appear to override the registry entry, and the session log file is still being updated upon exit from the ANT application.
Surely, Configuration Parameters specified in the APL command line apply to the whole session, and so should over-ride the entries in the Registry, even following multiple ⎕LOADs .
Ray
I frequently run two APL sessions in my PC at the same time, one for development, and the other running an application.
To aid this I have two shortcuts on my PC's desktop, one to start an APL development session, the other to run my "ANT" application.
In the registry:-
SaveLogOnExit is set to 1
and
log_file is set to:
C:\Users\Ray\Documents\Dyalog APL-64 18.0 Unicode Files\default.dlf
In my ANT's shortcut, the "target" has 3 entries (shown here as 3 separate lines) :
"C:\Program Files\Dyalog\Dyalog APL-64 18.0 Unicode\dyalog.exe"
start
LOADWS=C:\MiSites\hexserver31
Line one is simply the Dyalog executable (in quotes because of the embedded spaces within the full file path).
Line two is the name of the workspace I initially load, which sets up my pseudo user command. It also acts on my (not Dyalog's) command line parameter "LOADWS" if present.
Line three is that LOADWS parameter. On exit, "start.dws", ⎕LOADs the workspace named in this parameter. "hexserv31" in turn "bootstraps" the ANT application.
To this shortcut I have tried adding a standard Dyalog configuration parameter :
SaveLogOnExit=0
but this does not appear to override the registry entry, and the session log file is still being updated upon exit from the ANT application.
Surely, Configuration Parameters specified in the APL command line apply to the whole session, and so should over-ride the entries in the Registry, even following multiple ⎕LOADs .
Ray
Ray Cannon
Please excuse any smelling pisstakes.
Please excuse any smelling pisstakes.
-
ray - Posts: 238
- Joined: Wed Feb 24, 2010 12:24 am
- Location: Blackwater, Camberley. UK
Re: Multiple sessions and their logs
I thought this was now working because when exiting via pressing the "X" in the top right of the window, the
In this popup the 3 tick boxes (for Save config, continue and Log) are not ticked, but the Log is still being saved!
Here is a saved Log (from a simpler Shortcut) as proof:
You can see the Log HAS been saved.
popup box is displayed.Quit Dyalog APL. Are you sure?
In this popup the 3 tick boxes (for Save config, continue and Log) are not ticked, but the Log is still being saved!
Here is a saved Log (from a simpler Shortcut) as proof:
- Code: Select all
Dyalog APL/W-64 Version 18.0.39659
Serial number: 000766
Wed Jun 23 09:11:45 2021
+GetCommandLine
"C:\Program Files\Dyalog\Dyalog APL-64 18.0 Unicode\dyalog.exe" SaveLogOnExit=0
)off
Dyalog APL/W-64 Version 18.0.39659
Serial number: 000766
Wed Jun 23 09:12:09 2021
You can see the Log HAS been saved.
Ray Cannon
Please excuse any smelling pisstakes.
Please excuse any smelling pisstakes.
-
ray - Posts: 238
- Joined: Wed Feb 24, 2010 12:24 am
- Location: Blackwater, Camberley. UK
Re: Multiple sessions and their logs
Hi Ray,
To have Dyalog not read in a session log and not save it, put this on your ANT application command line:
LOG_FILE_INUSE=0
Regards,
Vince
To have Dyalog not read in a session log and not save it, put this on your ANT application command line:
LOG_FILE_INUSE=0
Regards,
Vince
- Vince|Dyalog
- Posts: 439
- Joined: Wed Oct 01, 2008 9:39 am
Re: Multiple sessions and their logs
Thank you Vince
Ray Cannon
Please excuse any smelling pisstakes.
Please excuse any smelling pisstakes.
-
ray - Posts: 238
- Joined: Wed Feb 24, 2010 12:24 am
- Location: Blackwater, Camberley. UK
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group