Search Results

Search: Posts Made By: BigSky
4,014
Posted By BigSky
Thanks for the explanation "Shell variables are...
Thanks for the explanation "Shell variables are not exposed to awk, so you have to pass them in." The light came on. Also found a good tutorial on awk that I need to bone up on. AWK Language...
4,014
Posted By BigSky
Thanks for the reply. Why use an if statement?...
Thanks for the reply. Why use an if statement? When I use:

ls -lrt Path/files | head -1 | more code
month=`ls -lrt ${u08_path}/*.gz | head -1 | awk {'print $6'}`; export month
day=`ls -lrt...
4,014
Posted By BigSky
File List
I have a file system filling up with files with no commonality in the file name. For example one of my file systems uses current date in the file name that I can cut the date to find a list of files....
1,977
Posted By BigSky
Good point about isolating the variables. When...
Good point about isolating the variables. When the script was set to -x I verified variable substitution. I'll go back make corrects to variables with curly braces and run it again.

The thing that...
1,977
Posted By BigSky
#if fs > threshold find files to move to...
#if fs > threshold find files to move to different filesystem
if [[ $UsedSpace_u06 -gt $Threshold_u06 ]]
then

find $LOG_path -name "FS_*.log" -mtime +4 -exec rm '{}' +
...
1,977
Posted By BigSky
Question on error from script
I used set -n FS.sh to check for syntax errors. No problems. I run the script with set -x and set -v with the following error:
find: bad option ;
find: path-list predicate-list

Reviewing the...
2,659
Posted By BigSky
Gottcha! The light bulb turned on after I sent...
Gottcha! The light bulb turned on after I sent the post. After several hours of testing (due to VPN issues) I got it to work. Thanks again.
2,659
Posted By BigSky
If I understand you correctly, create another...
If I understand you correctly, create another script to run both scripts. That's way too cool! This has been a great week learning new things with scripting. Thanks.
2,659
Posted By BigSky
What is the best practice?
I'm playing the shell game of moving and deleting files to make room for current DB backup. A set of files gets moved to serverB when serverA threshold is exceeded. I created two scripts one for...
20,533
Posted By BigSky
Thanks Frank for the suggestion. It made the...
Thanks Frank for the suggestion. It made the difference. I added 2 while loops for the scp and mv events. Within the scp loop I put an if-then-else statement to check the exit status. If true rm the...
20,533
Posted By BigSky
SCP, Remove and Move files
I tried to automate moving files with the script below. I spent hours of research on the net creating what I have so far. Scripting does not come easy for me so any help would be greatly appreciated....
Forum: Filesystems, Disks and Memory 11-21-2008
26,136
Posted By BigSky
I umount the filesystem, tried running fsck to...
I umount the filesystem, tried running fsck to get I/O error. I'm going to suggest to the guy onsite to login to the terminal to to check the RAID manager.
Forum: Filesystems, Disks and Memory 11-21-2008
26,136
Posted By BigSky
I/O Error
Filesystem /u01 indicates I/O error when accessed. After doing some research I ran iostat -eE command with the following noticeable error:

sd1 Soft Errors: 66 Hard Errors: 24 Transport...
Showing results 1 to 13 of 13

 
All times are GMT -4. The time now is 03:56 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy