Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to change the directory #4

Open
yahyameo opened this issue Dec 13, 2018 · 3 comments
Open

unable to change the directory #4

yahyameo opened this issue Dec 13, 2018 · 3 comments

Comments

@yahyameo
Copy link

When i run cmd.run('cd..'), it doesn't change the directory. can you fix this?

@Rezve
Copy link

Rezve commented Jan 10, 2019

If you want to change directory and perform some operation in that directory, use && between two commands. like this:

cmd.run('cd .. && ls');
or
cmd.run('cd "/home" && ls');

Other examples:
A; B (Run A and then B, regardless of success of A)
A && B (Run B if and only if A succeeded)
A || B (Run B if and only if A failed)
A & (Run A in background)

@Anunirva
Copy link

Its not working. Can you please give more elaborated example.

@Anunirva
Copy link

Throwing error The system cannot find the path specified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants