我的脚本中有以下命令集:
message="Secure copying file $remoteHost"
backupLogOutput "Info $message"
$(scp "$file" "$remoteUser"@"$remoteHost":"$remotePath") >> "$BACKUPLOG"
backupErrorHandler "$?" "$message"
ShellCheck在scp line(3)上给我警告:
删除周围的$()以避免执行输出。 [SC2091]
脚本有效。我想要执行输出。我可以忽略这个警告,还是应该以不同的方式写入scp行?
答案 0 :(得分:2)
我认为你确实不想执行scp "$file" "$remoteUser"@"$remoteHost":"$remotePath" >> "$BACKUPLOG"
输出 - 它看起来更像是你想复制一个文件:
l=structure(list(dat = structure(1:9, .Label = c("01.01.2016",
"02.01.2016", "03.01.2016", "04.01.2016", "05.01.2016", "06.01.2016",
"07.01.2016", "08.01.2016", "09.01.2016"), class = "factor"),
lpt = c(94L, 3L, 30L, 92L, 20L, 80L, 20L, 190L, 52L)), .Names = c("dat",
"lpt"), class = "data.frame", row.names = c(NA, -9L))
l=ts(l)
spectrum(l)