Page MenuHomeFreeBSD

Update script utility to show user's last command when using w command
AbandonedPublic

Authored by ganbold on May 11 2017, 8:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 11 2024, 8:20 PM
Unknown Object (File)
Dec 20 2023, 6:45 AM
Unknown Object (File)
Nov 26 2023, 3:04 PM
Unknown Object (File)
Sep 22 2023, 6:09 PM
Unknown Object (File)
Sep 22 2023, 8:40 AM
Unknown Object (File)
Sep 6 2023, 11:43 AM
Unknown Object (File)
Aug 2 2023, 7:49 AM
Unknown Object (File)
Jun 16 2023, 6:33 AM
Subscribers

Details

Reviewers
bapt
bdrewery
Summary

With w command it is currently not possible to see what command user is running when using script. w command will just show script is running. So this change updates user accounting database when script runs and w command can correctly show latest command that user is running.

Test Plan

Run stock script and then run top for instance. Then another terminal run w command. It will show only script is running.

Then patch script utility with this patch and test as before. This time it will show top command is running.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 9193
Build 9639: CI src buildJenkins