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

如何编译完,直接把文件scp到服务器上? #78

Open
wangwenqiangGitHub opened this issue Dec 1, 2021 · 2 comments
Open

Comments

@wangwenqiangGitHub
Copy link

我在zsh中写了一个命令do-scp直接scp拷贝的这个文件,比如: do-scp xxx 20; 运行这个命令直接拷贝到20设备了,在task.init中使用这个命令,报错,命令未定义,在终端中是可以的

@skywind3000
Copy link
Owner

skywind3000 commented Dec 1, 2021

shell 的 $PATH 配置不一致啊,你之前写的是 interactive shell 的配置,但是命令行运行 shell 命令是不会加载 interactive shell 的配置的,你可以写全 ssh、do-scp 的路径,或者增加 non-interactive shell 的 $PATH 对应配置。

@wangwenqiangGitHub
Copy link
Author

shell 的 $PATH 配置不一致啊,你之前写的是 interactive shell 的配置,但是命令行运行 shell 命令是不会加载 interactive shell 的配置的,你可以写全 ssh、do-scp 的路径,或者增加 non-interactive shell 的 $PATH 对应配置。

因为我这有好多设备,每次改ip的最后一位,所以就写了一个do-scp。 如果是ssh写的话,还是用asyncrun吧

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

2 participants