« first day (2903 days earlier)      last day (584 days later) » 

12:03 AM
would anyone know how you can run "hostname -I 2>1 || hostname -i | grep -v hostname" in rust? Command does not like this kind of chaining and redirection
 
 
16 hours later…
3:49 PM
@PascalVKooten one way is to delegate the work to a shell: Command::new("sh").arg("-c").arg("hostname -I 2>1 || hostname -i | grep -v hostname").output().expect("failed to get hostname")
 

« first day (2903 days earlier)      last day (584 days later) »