Skip to content

Maintain current dir (pwd) in interactive mode #104

Open
@thiell

Description

@thiell

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions