Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggested improvement to View DCS Log desktop shortcut #453

Open
stuartofmt opened this issue Mar 31, 2023 · 2 comments
Open

Suggested improvement to View DCS Log desktop shortcut #453

stuartofmt opened this issue Mar 31, 2023 · 2 comments
Assignees

Comments

@stuartofmt
Copy link

Is your feature request related to a problem? Please describe.

The existing View Log desktop shortcut on the Duet3d Pi image uses
sudo /usr/bin/journalctl -u duetcontrolserver -e

This form does not wrap the output lines and makes it difficult to see everything especially if using a remote viewer (NoMachine in my case)

Describe the solution you propose.

The following forms may provide a better experience as they wrap lines
sudo SYSTEMD_LESS=RXMK /usr/bin/journalctl -u duetcontrolserver -e
or
sudo SYSTEMD_LESS=RXMK /usr/bin/journalctl -u duetcontrolserver -n 100

Describe alternatives you've considered

Ex. A workaround exists but it is tedius, for example...

Provide any additional context or information.

Ex. Photos, mockups, etc.

@chrishamm
Copy link
Collaborator

Thanks, that's a good idea. sudo isn't required on the Pi but I'll give those less arguments a try.

@stuartofmt
Copy link
Author

stuartofmt commented Apr 6, 2023

sudo is a bit of a habit for me with some commands :-)

Other interesting possibilities (and sometimes more compact output) can be had using cat and / or grep instead of less. In some situations it can give a bit more flexibility.

  • tail from last boot
    journalctl -u duetcontrolserver -b -o cat --no-pager -f

  • recent entries from last boot for non unit process
    journalctl -b -o cat --no-pager -e | grep -i duetlapse3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants