nc命令在crontab中不起作用

时间:2016-06-13 23:22:29

标签: bash

你能帮我解决这个问题吗?

当我发出/ bin / echo“< 150> SAMBA”|时/ usr / bin / nc 142.17.69.11 -u 514 -w 1 在行命令中,我的Syslog服务器接收消息,但是当我将脚本的路径放入时 crontab它没有收到消息......

Platform.runLater(new Runnable() {
        @Override
        public void run() {
browser2 = new WebView();
webEngine = browser2.getEngine();
appREF = new JavaApp(cloudFrame);
 webEngine.getLoadWorker().stateProperty().addListener(
        new ChangeListener<State>() {
          @Override public void changed(ObservableValue ov, State oldState, State newState) {

              if (newState == Worker.State.SUCCEEDED) {
              JSObject win
                            = (JSObject) webEngine.executeScript("window");
// this next line registers the JavaApp class with the page... you can then call it from javascript using "app.method_name".
                    win.setMember("app", appREF);  
            }

            }
        });

0 个答案:

没有答案