find:paths必须在表达式之前:find -name

时间:2018-06-14 17:49:27

标签: shell ssh find

[root@clearsee-single ~]# sshpass -p bagabu ssh -q root@localhost find /opt/ -iname '*.log*' | xargs cp '/tmp/'
find: paths must precede expression: MSTRInstaller.log
Usage: find [-H] [-L] [-P] [-Olevel] [-D help|tree|search|stat|rates|opt|exec] [path...] [expression]

请咨询

1 个答案:

答案 0 :(得分:0)

import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { routes } from './app.router'; import { AppComponent } from './app.component'; import { AboutComponent } from './about/about.component'; import { AbtSec01Component } from './about/abt-sec01/abt-sec01.component'; import { HomeComponent } from './home/home.component'; import { NavbarComponent } from './navbar/navbar.component'; import { ErrorComponent } from './error/error.component'; import { HeaderComponent } from './header/header.component'; import { FooterComponent } from './footer/footer.component'; import { MainComponent } from './main/main.component'; import { HomeContentComponent } from './home/home-content/home-content.component'; @NgModule({ declarations: [ AppComponent, AboutComponent, AbtSec01Component, HomeComponent, NavbarComponent, ErrorComponent, HeaderComponent, FooterComponent, MainComponent, HomeContentComponent ], imports: [ BrowserModule, routes ], providers: [], bootstrap: [AppComponent] }) export class AppModule { } 使用ssh语义而非system(3)语义。

换句话说,您需要添加一个转义层:

execve(2)