aboutsummaryrefslogtreecommitdiff
path: root/rex
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2016-08-27 22:01:26 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2016-08-27 22:01:26 +0300
commit5d4949e8db82c0f65bfcaec216aeb4dc4d4000e8 (patch)
tree64d315e7bcd67599c88b081112eb495ea29d9d8b /rex
parent11c17b2b72ce7a6b5b575a60732ba0de82b93bd2 (diff)
downloadrex-5d4949e8db82c0f65bfcaec216aeb4dc4d4000e8.tar.gz
rex-5d4949e8db82c0f65bfcaec216aeb4dc4d4000e8.tar.bz2
Allow for trailing \r in earlycmd
Diffstat (limited to 'rex')
-rwxr-xr-xrex2
1 files changed, 2 insertions, 0 deletions
diff --git a/rex b/rex
index e58390c..4a18c26 100755
--- a/rex
+++ b/rex
@@ -1114,6 +1114,8 @@ proc runcmd {hosts command} {
if {$sidinfo($sid,state) == "INIT"} {
if {[info exists sidinfo($sid,earlycmd)]
&& $sidinfo($sid,earlycmd) != ""} {
+ regsub {\r+$} $sidinfo($sid,earlycmd) {} \
+ sidinfo($sid,earlycmd)
send -i $sid "$sidinfo($sid,earlycmd)\r"
unset sidinfo($sid,earlycmd)
} else {

Return to:

Send suggestions and report system problems to the System administrator.