Posts

Showing posts from September 3, 2018

pass protocols to command from file

Image
Clash Royale CLAN TAG #URR8PPP up vote 1 down vote favorite Need one more help please.. Manual run of following command works fine /jrr/bin/java -Xms14M -Xm14M -Dhttps.protocols=Tv1.2 -Dk.ts.client.protocols=TLSv.2 -jar /gq1/ust/classes/S.jar $(< /pass.txt) but shell fails can't read "(< /pass.txt)": no such variable !/usr/bin/expect spawn ssh gq1@a732.co.com "/jrr/bin/java -Xms14M -Xm14M -Dhttps.protocols=Tv1.2 -Dk.ts.client.protocols=TLSv.2 -jar /gq1/ust/classes/S.jar $(< /pass.txt);cd /gucq1/gcust;mail -s 'Hello' sam@gm.com < logs.txt" expect "password" send "N0r" interact expect eof. bash shell-script ssh command-line openssh share | improve this question edited Dec 14 '17 at 14:18 Archemar 19k 9 33 66 asked Dec 13 '17 at 14:54 SHaFqaT M 6 2 please do not change question, as is my answer in completly useless. you asked a question about bash , then ab...

vim + tmux + mouse can't click to place cursor

Image
Clash Royale CLAN TAG #URR8PPP up vote 0 down vote favorite Recently I've lost the ability to click to select a specific cursor location or tab in vim sessions running under tmux. I can still use the mousewheel to scroll through a buffer, but the cursor position only changes when the current line scrolls off the screen. Mouse operation is correct when running vim outside of tmux. As far as I can tell, the only recent upgrades to the system have been unrelated -- the problem appeared after a recent reboot where the kernel and graphics driver were updated. This is an Arch system with the following stack: i3wm v4.14.1-2 updated last October sakura terminal emulator v3.3.4-2 updated last April (problem also reproduces with urxvt ) tmux v2.6-1 updated last October vim 8.0.1297 updated last month (problem reproducible with earlier versions as well) .vimrc settings verified active: mouse=a ttymouse=xterm2 .tmux.conf settings verified active: mouse on default-terminal ...