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

How run these commands sequentially in the cmd console. #83

Open
egor230 opened this issue May 3, 2020 · 4 comments
Open

How run these commands sequentially in the cmd console. #83

egor230 opened this issue May 3, 2020 · 4 comments

Comments

@egor230
Copy link

egor230 commented May 3, 2020

Screenshot
Please tell us using process-palette. Run these commands sequentially in the cmd console.
cd C:\Program Files\lua && Lua “F:/Program Files/lua/lessons/lesson 13. lua”

@morassman
Copy link
Owner

The Shell Command field allows you to have multiple lines. Each line will execute in sequence. It therefore shouldn't be necessary to have the && in between. Just put each command on its own line.

Having said that. In your case there are better ways to accomplish what you want to do.

Option 1
Use the following:
Shell Command: "C:\Program Files\lua\Lua" "{fileAbsPath}"

Notice that I've put " characters around C:\Program Files\lua\Lua. This is to cater for the space in the path. Also, I used {fileAbsPath}. It's shorter and comes down to the same thing.

Option 2
Use the following:
Shell Command: Lua "{fileAbsPath}"
Working Directory: C:\Program Files\lua\Lua

I haven't tested these. I don't use Windows and I don't use Lua, but give it a try.

@egor230
Copy link
Author

egor230 commented May 4, 2020

Thank you very much for your response. I am very grateful to you for taking the time to explain everything to me in such an accessible way.
Is it possible for process-palette to write a specific text in the cmd console and press enter?

@morassman
Copy link
Owner

process-palette only produces the output of the process. It is not a terminal emulator that provides the ability to enter input. If you are looking for that kind of functionality then you can try one of the packages that does that. I think there are a few. I don't use any of them myself, but one that seems popular is terminal-plus.

@datavectors
Copy link

datavectors commented May 20, 2020

You can use process-palette to drive an external terminal emulator and using a tool such as xdotool to paste code into the terminal emulator, then auto run. One I use in Ubuntu is Yakuake or even gnome-terminal. Windows users might invoke Power Shell or other terminal emulator. The idea is to use process-palette to transfer Atom vars to an external terminal emulator or other applications such as automation scripts. In fact I have one command which dumps all variables as seen under variables in process-palette settings (when setting up a command). I can expand further if interested.

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