Skip to content

Commit

Permalink
Refactor find command in ex_trace_conn.rs to exclude container and ov…
Browse files Browse the repository at this point in the history
…erlay directories
  • Loading branch information
arloor committed Oct 23, 2024
1 parent f30f313 commit e0a1f59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trace_conn/examples/ex_trace_conn.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
// let glibc = "/lib64/libc.so.6";
let cmd = Command::new("bash")
.arg("-c")
.arg("find / -name libc.so.6|grep 64|head -n 1")
.arg("find / -name libc.so.6|grep 64|grep -v containers|grep -v overlay|head -n 1")
.output();
let glibc = match cmd {
Ok(output) => String::from_utf8(output.stdout)
Expand Down

0 comments on commit e0a1f59

Please sign in to comment.