Skip to content

Instantly share code, notes, and snippets.

@pavlenko-volodymyr
Last active November 12, 2015 13:25
Show Gist options
  • Select an option

  • Save pavlenko-volodymyr/15fb0db5cb13ba0bf8f8 to your computer and use it in GitHub Desktop.

Select an option

Save pavlenko-volodymyr/15fb0db5cb13ba0bf8f8 to your computer and use it in GitHub Desktop.
cd to the directory of the latest task run at mesos slave
#!/bin/sh
MESOS_HOME="/tmp/mesos"
cd "$(\ls -1dt $MESOS_HOME/slaves/*/ | head -n 1)" && \
cd "$(\ls -1dt frameworks/*/ | head -n 1)" && \
cd executors/atropos-executor/runs/latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment