cea-hpc/clustershell — Issue #104: Maintain current dir (pwd) in interactive mode
Author: thiell
Created: 2012-03-03 16:47:30+00:00
State: open
Labels: Scripts

It would be nice to maintain current dir (pwd) in interactive mode,
to perform various operations on a large number of nodes
In the current implementation, need to give it for each line:

{{{
# clush -bL -w node[1-100]
clush> cd /var ; cp -r log log.bkp
clush> cd /var/log; ls -1 -tr
node[1-100]:file.x
node[1-100]:file.y
node[1-100]:file.z
clush> cd /var/log ; rm file.x file.y
}}}

It would be fine to maintain pwd in interactive mode (maybe by retrieving 'pwd' value of ssh sessions after a command), so we can do:

{{{
# clush -bL -w node[1-100]
clush> cd /var
clush> cp -r log log.bkp
clush> cd log
clush> ls -1 -tr
node[1-100]:file.x
node[1-100]:file.y
node[1-100]:file.z
clush> rm file.x file.y
}}}