Updating run script
This commit is contained in:
parent
917f13d0e3
commit
367c276163
1 changed files with 4 additions and 1 deletions
|
@ -22,6 +22,9 @@
|
||||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
|
|
||||||
|
set +o history
|
||||||
|
|
||||||
# Cd into the directory of the library
|
# Cd into the directory of the library
|
||||||
script="$(readlink $0)"
|
script="$(readlink $0)"
|
||||||
if [ -z "$script" ]; then script="$0"; fi
|
if [ -z "$script" ]; then script="$0"; fi
|
||||||
|
@ -76,7 +79,7 @@ $full_script"
|
||||||
echo "$full_script" | ssh -q $host -p $port "tee run.sh" 1>/dev/null
|
echo "$full_script" | ssh -q $host -p $port "tee run.sh" 1>/dev/null
|
||||||
info "Transmitted script"
|
info "Transmitted script"
|
||||||
# Run and remove it.
|
# Run and remove it.
|
||||||
ssh -t $host -p $port PASSWORD="$pswd" "bash run.sh && rm run.sh"
|
ssh $host -p $port PASSWORD="$pswd" "bash run.sh && rm run.sh"
|
||||||
## Interactive shell does not work.
|
## Interactive shell does not work.
|
||||||
#ssh -t $host PASSWORD="$pswd" "bash -i run.sh && rm run.sh"
|
#ssh -t $host PASSWORD="$pswd" "bash -i run.sh && rm run.sh"
|
||||||
rm tmp.sh
|
rm tmp.sh
|
||||||
|
|
Loading…
Reference in a new issue