Fast VPS access on OpenVZ

Tired of typing in: “vzctl enter <VEID>” all the time? If you’ve not made it already your self, here’s a very handy script:

If you copy and paste it directly to the commandline take the first line as well (save it with ctrl-D), else copy it from the second. Call it “vzenter”, permissions: chmod vzenter 0700 and put it in; /usr/local/bin

cat > vzenter
#!/bin/bash

# Simple script to enter a VPS by www.ezeyme.com

if [[ ! $1 ]]; then
   echo "Usage: vzenter <veid>"
else
   veid=$1
   vzctl enter $veid
fi
Tags: , ,

About Esmé