I am trying to PSSH to multiple hosts, but instead of going to the home directory, i would like to go directly into a particular directory. Can anyone help me with how to do this? I have searched quite a lot for this, but without much luck.
At the moment my code looks like this:
pssh -h hosts.txt -P -i -v -l root -o . -I < downloadpkgs.sh
where hosts.txt contains the list of hosts and I want to execute the downloadpkgs shell script.
Thanks in advance!