-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
wt support run command in application #4864
Comments
I'm sorry, what are you asking for? As of 0.9, Windows Terminal supports commandline arguments for a bunch of different scenarios. It should be as easy as running Are you trying to open a new tab in an existing WT window? Are you trying to change the Are you trying to use |
How would you normally run that script, from a cmd.exe window? Probably something like
What's happening when you run |
wt C:\cygwin64\bin\bash C:\test.sh value1 |
That sounds like the script is terminating, and the terminal is closing in response to the last tab closing. I'm not really sure how
|
Thank you. |
You could try adding
|
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
I'm having the same issue, I can't figure out how to run a command upon executing #5528 seems relevant. |
Same error |
|
@zadjii-msft I've tried also to run the ls command but doesn't work |
Okay well what's the full commandline you're trying, and what's the path to |
Alright, so, I can only guess that you're using WSL, and you're trying to run Turns out, this is in general, a hard problem with While this won't work in the general case, this will work for the simple wt wsl bash -c "ls -lA --color & bash" |
@zadjii-msft There's only one issue with this: in my real use case, I need to get the output of a command that waits some seconds before outputting. With your solution, it returns control instantly after running the desired command |
Alright well, I'm sure there's other ways of doing this better. I'm not really a The thread I linked on stack overflow has a long list of better ways of running a script than what I've posted. That's just the dead-simple |
wt.exe --title "PuTTY" \plink.exe -pw !P -load "WinSCP temporary session" -no-antispoof |
Description of the new feature/enhancement
How to start wt with bash like this:
C:\Windows\System32\cmd.exe /C start wt C:\test.sh value1
Proposed technical implementation details (optional)
test.sh
echo "Value: $1"
The text was updated successfully, but these errors were encountered: