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
1 2 3 4 5 6 7 8 9 10 11 |
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 |
Leave a Reply