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

orchard ssh vm: introduce exec mode #72

Merged
merged 2 commits into from
Apr 5, 2023
Merged

orchard ssh vm: introduce exec mode #72

merged 2 commits into from
Apr 5, 2023

Conversation

edigaryev
Copy link
Collaborator

@edigaryev edigaryev commented Apr 5, 2023

Example use-case:

% cat test.sh
#!/bin/sh

ls
% orchard ssh vm macos 'sh -s' < test.sh 2>/dev/null 
Desktop
Documents
Downloads
Library
Movies
Music
Pictures
Public
actions-runner

Resolves #60.

@edigaryev edigaryev requested a review from fkorotkov April 5, 2023 08:14
Copy link
Contributor

@fkorotkov fkorotkov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow. Could you please add examples to docs as well?

Maybe a simple one like orchard ssh vm macos 'uname -a' and the complex one like in your comment.

Also in case of orchard ssh vm macos 'uname -a', will the ssh session exit? Or it will be hanging until we exit 0?

@edigaryev
Copy link
Collaborator Author

Wow. Could you please add examples to docs as well?

Added in 0772750.

Also in case of orchard ssh vm macos 'uname -a', will the ssh session exit? Or it will be hanging until we exit 0?

It will exit since there are no more processes that are running (e.g. command interpreter), yes.

@edigaryev edigaryev enabled auto-merge (squash) April 5, 2023 15:03
@edigaryev edigaryev requested a review from fkorotkov April 5, 2023 15:03
@edigaryev edigaryev merged commit 316f785 into main Apr 5, 2023
@edigaryev edigaryev deleted the ssh-exec-mode branch April 5, 2023 15:05
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

Successfully merging this pull request may close these issues.

exec command to execute scripts on VMs
2 participants