Skip to content

Instantly share code, notes, and snippets.

@wcypierre
Created July 27, 2013 18:45
Show Gist options
  • Save wcypierre/6095848 to your computer and use it in GitHub Desktop.
Save wcypierre/6095848 to your computer and use it in GitHub Desktop.
[Script] Copy Binary and dependencies(libraries) to a folder
#!/bin/bash
cp `which $1` /var/chroot/sshd/bin/;\
ldd `which $1`|awk '{print $3}'|grep -e '^/'|xargs -I{} cp -v --parent '{}' /var/chroot/sshd/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment