Hello all. I use a script to get a list of snapshots from a remote machine.
If I run it on the console it gives me the following. root@storage1:/ # ssh r...@storage2.server.mydomain.com /sbin/zfs list -H -o name -t snapshot | grep 15min_ | sort storage/home/datadir1@15min_2016-03-09_22.20.00--1h storage/home/datadir2@15min_2016-03-09_22.20.00--1h storage/home/datadir3@15min_2016-03-09_22.20.00--1h storage/home/datadir4@15min_2016-03-09_22.20.00--1h root@storage1:/ # As you see the output shows the zfs snapshots of the remote server. I need this to to into a file so I can grep, sed and do other things with it. If I put the output to a file than the name of the remote machine is in that file. ( I see this on my 10.2 machines, not on my 9.x machines.) root@storage1:/ # ssh r...@storage2.server.mydomain.com /sbin/zfs list -H -o name -t snapshot | grep 15min_ | sort > /tmp/zfs-remote-snapshot root@storage1:/ # vi /tmp/zfs-remote-snapshot ^[]0;storage2.server.mydomain.com^Gstorage/home/datadir1@15min_2016-03-09_22.20.00--1h storage/home/datadir2@15min_2016-03-09_22.20.00--1h storage/home/datadir3@15min_2016-03-09_22.20.00--1h storage/home/datadir4@15min_2016-03-09_22.20.00--1h I have no idea why the hostname is in the file. Is there an option I should give to ssh or something. Like I said, on FreeBSD 9.x I do not see this. Thanks for your time. regards Johan _______________________________________________ freebsd-stable@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"