Skip to content

Commit c17408b

Browse files
committed
Make run-remote command a bit easier to use
1 parent d71f35c commit c17408b

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

Justfile

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,12 @@ capture-all-replays interface *args:
109109
echo ""
110110
done
111111

112-
# Run the `dc` example in release mode on a remote testbench PC
113-
run-remote +args:
114-
cargo build --example dc --release
115-
scp target/release/examples/dc ethercrab-debian1211:~
116-
ssh james@ethercrab-debian1211 'sudo setcap cap_net_raw=pe ~/dc'
117-
ssh -t james@ethercrab-debian1211 "RUST_LOG=info,ethercrab::subdevice_group=debug,ethercrab::dc=debug ~/dc {{args}} || true"
118-
rsync -avzh james@ethercrab-debian1211:~/*.csv ./
112+
# Run and example in release mode on a remote testbench PC, capturing traffic with `tshark`.
113+
#
114+
# E.g. `just run-remote ek1100 c6015 enp1s0`
115+
run-remote example remote +args:
116+
cargo build --example {{example}} --release
117+
scp target/release/examples/{{example}} {{remote}}:~
118+
ssh james@{{remote}} 'sudo setcap cap_net_raw=pe ~/{{example}}'
119+
ssh -t james@{{remote}} "RUST_LOG=info,ethercrab::subdevice_group=debug,ethercrab::{{example}}=debug ~/{{example}} {{args}} || true"
120+
rsync -avzh james@{{remote}}:~/*.csv ./ || true

0 commit comments

Comments
 (0)