Skip to content

Instantly share code, notes, and snippets.

@pierew
Last active August 29, 2015 14:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pierew/640cad2602bc5ca57006 to your computer and use it in GitHub Desktop.
Save pierew/640cad2602bc5ca57006 to your computer and use it in GitHub Desktop.
vzenter - A little Script to enter a openVZ CT by use Hostname
# As Bash Alias
function vzenter() {
vzctl enter $(vzlist | egrep "$1" | awk '{print $1}')
}
#!/bin/bash
# As Script File
vzctl enter $(vzlist | egrep "$1" | awk '{print $1}')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment