Skip to content

Monitor all files, use file mask, include files, bug fixes. #188

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions _progress
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ local options=(
{-c,--command}'[monitor only this command name (ex: firefox)]: :{_command_names -e}'
{-p,--pid}'[monitor only this process ID (ex: $(pidof firefox))]: :_ps'
{-i,--ignore-file}'[do not report process if using file]: :_files'
{-f,--include-file}'[report process if using file]: :_files'
{-o,--open-mode}'[report only files opened for read or write]:rw:(r w)'
{-A,--all-files}'[all files, not just the biggest one]'
'(- : *)'{-v,--version}'[show program version and exit]'
'(- : *)'{-h,--help}'[display this help and exit]'
)
Expand Down
31 changes: 28 additions & 3 deletions progress.1
Original file line number Diff line number Diff line change
Expand Up @@ -75,20 +75,45 @@ monitor only this numeric process ID (ex: \`pidof firefox\`). This option can
be used multiple times on the command line.
.TP
.B \-i (\-\-ignore-file file)
do not report a process for 'file'. If the file does not exist yet, you must
give a full and clean absolute path. This option can be used multiple times
on the command line.
do not report a process for 'file'.
This option can be used multiple times on the command line.
See
.SM
.B NOTE About File Paths
below.
.TP
.B \-f (\-\-include-file file)
report a process for 'file'.
This option can be used multiple times on the command line.
See
.SM
.B NOTE About File Paths
below.
.TP
.B \-o (\-\-open-mode {r|w})
report only files opened for read or write by the process. This option is
useful when you want to monitor only output files (or input ones) of a process.
.TP
.B \-A (\-\-all-files)
report all files of the process, not just the biggest one. This is useful when
monitoring processes with multiple inputs or outputs like multistream ffmpeg
conversion.
.TP
.B \-v (\-\-version)
show program version and exit
.TP
.B \-h (\-\-help)
display help message and exit

.SH NOTE About File Paths
If the specified file contains '/', it's treated as exact file name.
If the file does not exist yet, you must give a full and clean absolute path.
.PP
If the given file doesn't have a '/' in it, it's treated as file mask which is
matched against the file name portion of the full path.
To specify an exact file name in the current directory, use "./file".


.SH ENVIRONMENT
It's possible to give permanent options using PROGRESS_ARGS environment variable.
See example below. Command line arguments take precedence over environment.
Expand Down
Loading