使用ssh -J传播退出代码

我想知道在使用books: {id,name,year,authorId}选项时是否可以通过ssh获取远程命令的结果代码。

  

authors:首先通过ssh连接到目的地描述的跳转主机,然后从那里建立到最终目的地的TCP转发,从而连接到目标主机。

在常规会话中获取它很简单:

    export class AuthorService {
      private authsCollection: AngularFirestoreCollection<AuthorModel>;
      auths: Observable<AuthorModel[]>;
      constructor(private afs: AngularFirestore) {
        this.authsCollection = this.afs.collection<AuthorModel>('authors');
      }

      createAuthor(author: AuthorModel) {
        return this.authsCollection.add(JSON.parse(JSON.stringify(author)));
      }

      getauthor(id: string): Observable<AuthorModel> {
        const authorsDocuments = this.afs.doc<AuthorModel>('authors/' + id);
        return authorsDocuments.snapshotChanges()
          .pipe(
            map(changes => {
              const data = changes.payload.data();
              const id = changes.payload.id;
              return { id,...data };
            }))
      }

      getallAuthors() {
        return this.authsCollection.snapshotChanges();
      }

      updateAuthorById(author: AuthorModel) {
        return this.afs.doc('authors/'+author.id).set(JSON.parse(JSON.stringify(author)));
      }

      deleteAuthor(id: string){
        const authorsDocuments = this.afs.doc<AuthorModel>('authors/' + id).delete();
        return authorsDocuments;
    }

}

但是我不能在这里得到它:

-J

即使在第二个请求中,我也希望得到42。谢谢。

wanglei0914 回答:使用ssh -J传播退出代码

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3148493.html

大家都在问