This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# shell script to rename a virtual machine in ESXi | |
VOLNAME=$1 | |
DIRNAME=$2 | |
OLDNAME=$3 | |
NEWNAME=$4 | |
VM_DIRPATH="/vmfs/volumes/$VOLNAME/$DIRNAME" | |
f_OK() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Dim config, configFile, f, ffilename, filename, fmtime, fso, mtime, tzo, N, Y, M, D | |
Set fso = CreateObject("Scripting.FileSystemObject") | |
configFile = fso.GetParentFolderName(fso.GetParentFolderName(Wscript.ScriptFullName)) & "\fileinfo.cfg" | |
If NOT fso.FileExists(configFile) Then | |
WScript.Quit | |
End If |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# requires bash version 4 | |
# This script synchronizes local repositories with | |
# external repositories | |
# | |
############################################################ | |
# PREREQUISITES | |
############################################################ | |
for util in reposync createrepo; do |
NewerOlder