while getopts ":I:L:R:T:n:s:t:" opt; do
case $opt in
I|L|R) helper_opts="$helper_opts -$opt $OPTARG";;
- T) tmux="$OPTARG";;
+ T) tmux="$OPTARG"; helper_opts="$helper_opts -$opt $OPTARG";;
n|s|t) session_opts="$session_opts -$opt $OPTARG";;
esac
done
# Options: -I <path> Specify path to kinit.
# -L <path> Specify path to klist.
# -R <path> Specify path to krenew.
+# -T <path> Specify path to tmux.
# Notes: Doesn't handle multiple sessions properly.
#
$tmux_helper = $$;
my %opts;
-getopts('I:L:R:', \%opts);
+getopts('I:L:R:T:', \%opts);
my $kinit = $opts{'I'} || "kinit";
my $klist = $opts{'L'} || "klist";
my $krenew = $opts{'R'} || "krenew";
+my $tmux = $opts{'T'} || "tmux";
my $exitasap = 0;
my $pid = 0;
sub want_credentials {
# Do we already know?
return sleep 1 if &check_kinit_child;
- system "tmux", "new-window", "-n", "Renew Kerberos credentials", "exec $kinit";
+ system $tmux, "new-window", "-n", "Renew Kerberos credentials", "exec $kinit";
}
sub cleanup {