MySQL Database Missing on UNIX server. Possible to recover?
My dedicated server is VERY old (running Apache/1.3.37 (Unix) PHP/4.4.4 FrontPage/5.0.2.2510). We have a script that runs and manages our customer database. Early in the morning last Friday, it was...
View ArticleSed/awk/perl substitution with multiple lines
OSX I have been grinding my teeth on a portion of code. I am building a bash script that edits a html email template. In the template, I have place holders for SED (or whatever program is appropriate)...
View ArticleGNU Barcodes
I wish to be able to print a barcode .5 inches from top of the page and centered. I generate the barcode - yes 12345 | head -84 | barcode -p 5x5.0cm -umm -e CODE39 > test.ps; and print - lpr -o...
View ArticleCopy(append ) the contents of file1 and file2 to file3
Platform : Oracle linux 6.5 I have two log files with the following contents Code: [root@tblmanh236 test]# ls -l total 8 -rw-r--r--. 1 root root 75 Dec 10 20:55 myLogfile1.log -rw-r--r--. 1 root root...
View ArticleQuestion related to grep
We have huge file with control A as delimiter. Somehow one record is corrupted. This time i figured it out using ETL graph. If future , how to print only bad record. Example Correct record: Code:...
View ArticleNeed to change date format in a csv file using awk
Example: Input csv file Code: 00245DLS,Sitel Ocala,12/31/2014,18:45,1.00,7.00,0.00,0.00 00245DLS,Sitel Ocala,12/31/2014,19:00,-1.00,-1.00,-1.00,-1.00...
View ArticleCreating mountpoint in Linux from rawdevices without lv's
Hello, I need to create mountpoint in linux from rawdevices without using lv's. Please help me with the steps to do this. Best regards, Vishal
View ArticleHow to get specific lines?
Hi all, I am a beginner to bash shell. I am trying to get multiple lines from file1 using the line numbers listed in file2. For example, file2 looks like: Code: 1 3 4 8 10 ... How may I get the...
View ArticleCustom sort on a column
Hello all, How do I achieve this? I have A, B and A/B in different variables in a file in col2. I want them to sort in such a way, that the variables appear together, and within a variable, the data is...
View ArticleUpgarding AIX 6.1.8.1 to 7.1.3.3 directly from DVD
Hello everyone, I have a server with mirrored disk, I unmirrored it and created a altinst_rootvg and I used this command but it failed to upgrade my 6.1 to 7.1 #alt_disk_copy -b update_all -l /dev/cd0...
View ArticleList 2 weeks older file on specific directory
Ive been a vocal of FIND command even before. Command below doesnt really give me the file that is older than two weeks.. Is there a script that will list me the log files that i want like for this...
View ArticleReason to keep old /var/opt/perf/datafiles/logproc files
Would there be a reason to keep old logproc files that have been tarred up for any longer than a few days?
View ArticleTool suggestion for collection CPU/memory Stats
Hi, We have around 1000 server (Red Hat + Suse + Parallels + Solaris-9/10/11). Every month, we generate a report for all servers for CPU and Memory utilization in 'percentage used'. This report is...
View ArticleRe-order columns
I am trying to reorder columns based on a value in a field in the attached file. Thank you :). Code: If $11 is not equal to "unknown", then in a new text file $4, $11, $7, $13 For example, row 24 $11...
View ArticleMemory and cache access time discrepancy
Code: #include<stdio.h> #include<stdlib.h> #include<sys/time.h> #include<time.h> #include "rdtsc.h" #define SIZE 4*64*1024 int main() { unsigned long long a,b; int...
View ArticleParsing a file based on positional constraints
I have a list file1 like Code: dog cow fox cat fish duck crow I want to classify the elements of file1 based on constrains applied on file2. Additionally the number of elements (words) in the each line...
View ArticleUNIX Folder Recovery
I had a data folder in MySQL that has simply disappeared. Something about a compromised server and MySQL crashing. This happened a few days ago. Although there has been one reboot, nothing new has been...
View ArticleDoubling Up Warning
I got a private message about doubling up and bumping up posts, being penalized, and losing points or coins or something. Except, that's not what I did. My original post was about trying to recover a...
View ArticleDoubt on NMON - disable detailed disk statistics
Hi All, The NMON file is getting generated with file size of more than 70MB for just 40 minute duration on AIX 6.1 box, due to more number of disks (Disk0, Disk1 , Disk22). With respect to disk related...
View ArticleAIX 4.3 ISO download link require
i need to download 4.3 ISO because my server rs6000 no display and i want to install on ther intel server to get data Also, help me installed cobol database on aix server can work on sco cobol ?
View Article