Skip to content

Tag: linux

Rsync not transferring the changes

I am trying to sync this local file (release.txt) to a server (verlis) in which I have ssh into, into the same path directory in which it also contains the same file. And so, I did the following: ssh verlis rsync -av /tools/packageA/release.txt verlis:/tools/packageA/release.txt The process was very fast and …

compare the length of multiple files using awk or sed

I want to compare the number of lines of each file and choose the one that contains the maximum number of lines for example I will get as result Answer Alternative with lot’s of piping this script assumes the file names are under your control and space or _V won’t appear in the base names. Otherwi…

How to run eval spawn ssh and expect in background?

I created a script to get in inside an Access Point (AP) using ssh and execute some commands and I used expect to interact with shell. The scripts works fine when it is running on foreground, but when I try to execute the same script in background using & to fork the process, it stop at spawn ssh command …