From 09154ec15f0f37b8af29409d16144c88bd8b3526 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Sat, 13 Jul 2013 10:02:03 -0700 Subject: [PATCH] ip: add batch mode to man page --- man/man8/ip.8 | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/man/man8/ip.8 b/man/man8/ip.8 index 37f99885..9065b3a0 100644 --- a/man/man8/ip.8 +++ b/man/man8/ip.8 @@ -11,6 +11,12 @@ ip \- show / manipulate routing, devices, policy routing and tunnels .BR help " }" .sp +.ti -8 +.B ip +.RB "[ " -force " ] " +.BI "-batch " filename +.sp + .ti -8 .IR OBJECT " := { " .BR link " | " addr " | " addrlabel " | " route " | " rule " | " neigh " | "\ @@ -27,17 +33,28 @@ ip \- show / manipulate routing, devices, policy routing and tunnels .BR inet " | " inet6 " | " ipx " | " dnet " | " link " } | " \fB\-o\fR[\fIneline\fR] } + .SH OPTIONS .TP .BR "\-V" , " -Version" -print the version of the +Print the version of the .B ip utility and exit. +.TP +.BR "\-b", " \-batch " +Read commands from provided file or standard input and invoke them. +First failure will cause termination of ip. + +.TP +.BR "\-force" +Don't terminate ip on errors in batch mode. +If there were any errors during execution of the commands, the application return code will be non zero. + .TP .BR "\-s" , " \-stats" , " \-statistics" -output more information. If the option +Output more information. If the option appears twice or more, the amount of information increases. As a rule, the information is statistics or some time values.