I had to copy all of the files (calc scripts) from my Essbase servers’ application directories, and wanted to preserve the folder layout in the destination. I ran the following against all of my servers to achieve this: cp --parents `find...
I was searching around for a way to monitor my Planning web servers, and I found the following post by Mike (https://grepular.com/Monitor_Your_Website_Automatically_From_Cron). I followed his advise, but customized his commands into the following script (which I croned) to both email and...
I find these commands useful to kill all processes running from a given script or have the same process name: kill -9 `ps -ef | grep scriptname.sh | grep -v grep | awk ‘{print $2}’` kill -9 `ps -ef | grep...
Since disks are listed by their UUIDs in RHEL6 (most of the time) in the FSTAB, sometimes you’ll need to figure out which disk or partition that the FSTAB is referring to. blkid /dev/sda1 [ad#ad-post]...
Install Xming from http://sourceforge.net/projects/xming. Create a new or modify a SSH session in SecureCRT and check the following box under Connection -> Port Fowarding -> Remote/X11. Make sure X Forwarding is enabled on the server: yum -y install xorg-x11-apps xorg-x11-xauth xorg-x11-utils sed...
This is a note I found on my machine at work. It might come in handy later, or for somebody else. Substitute the username, maildir foldername, and the mboxfilename (output file) and paste at the bash prompt to convert a maildir...
This is a note I found on my machine at work. It might come in handy later, or for somebody else. Substitute the username, maildir foldername, and the mboxfilename (output file) and paste at the bash prompt to convert a maildir...
I had to migrate my Samba config from a CentOS5 box to a CentOS6 box. Samba was newer on the CentOS6 box. It was using Samba 3.5, while the CentOS 5 box still had Samba 3.0. The migration was pretty simple,...
Vmware-Tools for RHEL5 and RHEL6 on ESXi 5.0u1 (I’m sorry the formatting is bad. My copy and paste didn’t layout as nice as I had hoped, but I’ll log in a fix it later. Import the VMware Keys: rpm --import http://packages.vmware.com/tools/keys/VMWARE-PACKAGING-GPG-DSA-KEY.pub rpm...