You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think I misunderstood how sessions work. So it seems they are tied to the pid of the executing shell. What I'm looking to do is to ensure that after my script is run, the next time I open the given logfile, regardless of shell pid, I will have that filter command.
I'm thinking my next best option is to use a kludgey solution of running the filters as part of my "view logs" script, with the filter parameters being read by that script at runtime, from a parameters file which will be written to from my setup-lnav script.
In any case, would it be reasonable to add a bit to the documentation of save-session and load-session, explaining that the sessions are locked to the current shell pid?
Operating system: Mac 10.14.2
version: 0.8.4
My script, setup-lnav.sh:
in lnav.err (note the different session file names, the saved file ending with 50485.json is not actually saved to disk):
When running the same command in-line without a bash script, the command is run, the session is updated, and everything works as expected:
To attempt to minimize variables, I am running the script from the same working directory the script is in.
Is there a potential workaround in the meantime? Thanks!
The text was updated successfully, but these errors were encountered: