Andrew Wood
|
ff8e396500
|
Do not add the monitor command arguments as PV input files; and execute the monitor command in the monitor process (#67).
|
2026-03-19 22:58:47 +00:00 |
|
Andrew Wood
|
04f99c4951
|
Use a special type for opts->argv[] so that the whole array, and array entries, can both be NULL, and the array entries pointers to constant strings; and ensure that argv[] always has a NULL pointer on the end - all so argv can be passed to execvp() (#67).
|
2026-03-19 22:57:41 +00:00 |
|
Andrew Wood
|
29c65ad9e1
|
Set up stdin/stdout for the monitored command (#67).
|
2026-03-18 22:28:51 +00:00 |
|
Andrew Wood
|
f84a668098
|
Fork for the command to monitor (#67).
|
2026-03-17 23:41:23 +00:00 |
|
Andrew Wood
|
06721c7be1
|
Create pipes for monitoring (#67).
|
2026-03-14 22:34:17 +00:00 |
|
Andrew Wood
|
220625f370
|
Add TODO markers for the next steps of monitor mode (#67).
|
2026-03-14 21:50:50 +00:00 |
|
Andrew Wood
|
4606638567
|
Constrain the options so that -M cannot be used with -U (as it is a different action) and -M will report the right error message if mixed with -R or -Q (#67).
|
2026-03-14 17:20:30 +00:00 |
|
Andrew Wood
|
882428883a
|
Remember both -N and -F values if two were given (#67).
|
2026-03-14 14:54:53 +00:00 |
|
Andrew Wood
|
c2bbb8eef1
|
Parse the monitoring side setting from "--monitor" (#67).
|
2026-03-14 14:28:30 +00:00 |
|
Andrew Wood
|
111b687449
|
Give "--monitor" a parameter to set which side(s) of the command to monitor (#67).
|
2026-03-13 23:06:43 +00:00 |
|
Andrew Wood
|
5f1893f094
|
Draft documentation and option parsing for a "--monitor" option to run a command and monitor its input and output (#67).
|
2026-03-11 23:37:09 +00:00 |
|
Andrew Wood
|
a33ee8ef26
|
Avoid a comparison of signed and unsigned values.
|
2026-03-09 20:28:05 +00:00 |
|
Andrew Wood
|
9566e7d7ea
|
Run through "make indent" for consistency.
|
2026-03-08 11:21:38 +00:00 |
|
Andrew Wood
|
0a27a85b4a
|
Update the copyright years.
|
2026-03-07 23:20:20 +00:00 |
|
Andrew Wood
|
d186d618e3
|
Look up the right maxfds value to use with nftw() for the current system (#179).
|
2026-03-07 23:15:09 +00:00 |
|
Andrew Wood
|
e17f64fce7
|
Allow "--size @dir" to read the size of all files under "dir" (#179).
|
2026-03-07 22:23:10 +00:00 |
|
Andrew Wood
|
42cf7ed628
|
Move the remote control code into the pv library.
|
2025-10-26 12:55:15 +00:00 |
|
Andrew Wood
|
b1cac9b78d
|
Record all old-style formatting options, and the full string for the extra display spec, in the control structure; make pv_remote_set only use internal pv state structures so it can be part of the internal pv library where it belongs, and not need to know about main()'s options array.
|
2025-10-26 12:53:51 +00:00 |
|
Andrew Wood
|
f07a7b1c87
|
Correct the noise interrupting the display of the original pv if the querying pv is terminated. Correct the transfer of size information to main() so that ETA can still be shown. (#101)
|
2025-10-24 09:24:31 +01:00 |
|
Andrew Wood
|
7598b4d46c
|
Add pv_query_loop() to run a main loop watching another pv (#101).
|
2025-10-24 09:00:10 +01:00 |
|
Andrew Wood
|
15ed99eee7
|
Implement --query message send/receive (#101).
|
2025-10-23 23:27:34 +01:00 |
|
Andrew Wood
|
590a3535d8
|
Don't keep PV_REMOTE_QUERY separate from PV_REMOTE_CONTROL after all since they will need to work together; extend pv_remote_check() so it will check for both -R and -Q signals (#101).
|
2025-10-21 23:39:17 +01:00 |
|
Andrew Wood
|
b34bba8b4a
|
Remove unused pv_remote_init, pv_remote_fini functions; add initial stubs for -Q (#101).
|
2025-10-21 23:17:23 +01:00 |
|
Andrew Wood
|
4f82525c39
|
Correct the comment at the end of the conditional.
|
2025-10-21 23:03:30 +01:00 |
|
Andrew Wood
|
9bd96614b3
|
Add an action type for query mode, and more TODOs to plan how it will work (#101).
|
2025-10-21 22:11:10 +01:00 |
|
Andrew Wood
|
36d82e313a
|
Rename pv__control_file to pv_open_controlfile, and move it in with the other file functions so it can be used by both the remote-control and the remote-query code (#101).
|
2025-10-21 22:09:44 +01:00 |
|
Andrew Wood
|
8b3b61e2d3
|
Separate the data transfer modifier options from the alternative operating mode options.
|
2025-10-21 21:13:27 +01:00 |
|
Andrew Wood
|
de71cc2389
|
Prevent the use of any non-option arguments with -R or -Q (#101).
|
2025-10-21 20:48:44 +01:00 |
|
Andrew Wood
|
3f1782a573
|
Draft manual entry, help text, and option parsing for "--query" option (#101).
|
2025-10-20 21:17:59 +01:00 |
|
Andrew Wood
|
a40bdfb55f
|
Merge branch 'issue45_sparse' (#45).
|
2025-10-15 23:17:05 +01:00 |
|
Andrew Wood
|
3c9ab822fe
|
Call lseek() at the start if output is appending, so that future lseek()s are relative to the right position, fixing the issue with incorrect truncation size (#45).
|
2025-10-15 23:08:33 +01:00 |
|
Andrew Wood
|
54913fddbe
|
First working draft of --sparse transfers, tests still needed (#45).
|
2025-10-13 22:13:54 +01:00 |
|
Andrew Wood
|
023cf22a59
|
Add --sparse / -O to the manual, to --help, and to option processing (#45).
|
2025-10-13 21:26:24 +01:00 |
|
Andrew Wood
|
164d7f7738
|
Add the extra --watchfd syntax to the help for that option.
|
2025-10-13 17:58:37 +01:00 |
|
Andrew Wood
|
f83aa2272b
|
Fix incorrect usage of "optarg".
|
2025-10-04 21:51:26 +01:00 |
|
Andrew Wood
|
fb7c05c262
|
Implement the "pgrep" call for --watchfd =NAME (#95).
|
2025-10-04 21:50:25 +01:00 |
|
Andrew Wood
|
bd4ca7301c
|
Document the new "=NAME" (#95) and "@FILE" (#12) syntax for --watchfd options.
|
2025-10-04 20:17:46 +01:00 |
|
Andrew Wood
|
242297a3c6
|
Partial draft of "-d @filename" (#12) and "-d =processname" syntax (#95).
|
2025-10-04 17:46:43 +01:00 |
|
Andrew Wood
|
d903a7d188
|
Add a return value to pv_remote_check() so its caller can know whether a message was received.
|
2025-09-29 21:31:05 +01:00 |
|
Andrew Wood
|
0b2f9ec397
|
Only call pv_watchfd_loop() from main, so that eventually pv_watchpid_loop() can be removed and multiple "-d" values supported (#12).
|
2025-09-24 22:11:44 +01:00 |
|
Andrew Wood
|
a0a9d682ca
|
Reject "-o" when using "-d".
|
2025-09-23 05:45:43 +01:00 |
|
Andrew Wood
|
22bf08f8e4
|
Accept additional arguments when -d is specified, expecting them to be more pid[:fd] values (#12).
|
2025-09-22 21:50:35 +01:00 |
|
Andrew Wood
|
b5fbd1978e
|
Replace watch_pid, watch_fd with arrays, though for now only use the first item in the arrays (#12).
|
2025-09-21 19:50:56 +01:00 |
|
Andrew Wood
|
db80f838ff
|
Explicitly set an action variable to say which action to perform, instead of inferring it from other settings like whether a watch PID was set (#12).
|
2025-09-18 06:18:18 +01:00 |
|
Andrew Wood
|
8c2e934768
|
Add a TODO marker for the next step to take.
|
2025-09-18 05:47:15 +01:00 |
|
Andrew Wood
|
dbce5b355e
|
Add --watchfd option values to an array in the main state, as well as to the currently used variables (#12).
|
2025-09-17 23:12:13 +01:00 |
|
Andrew Wood
|
12cc996d32
|
Add --watchfd option values to an array as well as to the currently used variables (#12).
|
2025-09-17 22:12:45 +01:00 |
|
Andrew Wood
|
f79bed3cb8
|
Rename "can_display_colour" and "can_display_utf8" to "terminal_supports_colour" and "terminal_supports_utf8" to make it clearer that these are not operator-supplied option settings, they are derived from terminal capabilities (colour) and the environment (UTF-8).
|
2025-07-27 15:20:05 +01:00 |
|
Andrew Wood
|
2171f40703
|
Address the splint warning.
|
2025-07-27 00:34:09 +01:00 |
|
Andrew Wood
|
da2a2e6fd2
|
Remove the state from the pv_error arguments, by adding a new function pv_set_error_prefix to call on startup, eliminating the need for a state program_name string; and add a private boolean to track whether there has been any output which means errors need preceding by a newline, which is updated by pv_display directly (#165).
|
2025-07-27 00:22:57 +01:00 |
|