-b
buffer-size |
--bufsz=buffer-size
Size in bytes of the internal I/O buffer (default: 512).
-d
| --debug
Set the debug mode. It is helpful to understand why a command script
does not work as expected.
-h | --help
Display the help of the command (subset of this man page).
-s
cmdfile |
--script=cmdfile
Script of input commands (default stdin). PDIP reads cmdfile or the
standard input (default) and accepts the
following commands:
#...
# and the following words up to the end of line are ignored (used for
comments)
dbg level
Set the debug level to level. The higher the level, the more
traces you get. The value 0 deactivates the debug mode.
timeout
x
Set to x seconds the maximum time to wait
on each
following commands (the value 0 cancels the timeout, this is the
default)
recv "w1 w2..."
Wait for a line with the pattern w1 w2... from the program.
The
pattern is regular expression conforming to regex (cf.
Section 7
of Linux manual).
send "w1 w2..."
Send the string w1 w2... to the program.
print "w1 w2..."
Print the string w1 w2... onto the standard output.
For both send and print commands, the string may
contain control characters with the notation "^character". For example,
"^C" means CONTROL C. The following shortcuts are also accepted:
\a Bell
\b Backspace
\t Horizontal tabulation
\n New line
\v Vertical tabulation
\f Form feed
\r Carriage return
\" Double quote
\\ Backslash
\[ Escape
\] Group Separatorroup Separator
\^ ^ character
sig
signame
Send the Linux signal signame
to the program. signame
is one of: HUP, INT, QUIT, ILL, TRAP, ABRT, BUS, FPE, KILL, USR1, SEGV,
USR2, PIPE, ALRM, TERM.
sleep x
Stop activity during x seconds
exit
Terminate PDIP
-V
| --version
Display the version of the software.
-o | --outstand
Make pdip print unread data from the controlled program at the end of
the session.
-p | --propexit
Propagate the exit code of the controlled
program to
pdip. This
makes
pdip exit with the exit
code of the controlled program (the exit code is 1 if the controlled
program terminates because of a signal). By default, the exit code of
pdip is 0 no matter the exit code of
the controlled program unless there is an error internal to
pdip.