Search Results

Search: Posts Made By: vidhyamirra
9,304
Posted By vidhyamirra
script scans all the files in a specific...
script scans all the files in a specific directory and checks whether they are unzippable. all the monitoring information like how many files are scanned /corrupted are logged in a log file. I dint...
9,304
Posted By vidhyamirra
Assistance pls - pipe error: Too many open files in system
When I run a bash script in the customer system, it throws the warning and script exits

Exec '/root/sample.sh' @ hostname-- OK
(warn) /root/sample.sh: pipe error: Too many open files in system...
17,940
Posted By vidhyamirra
Yes.. Thank you.
Yes.. Thank you.
17,940
Posted By vidhyamirra
after modification too its giving wrong result. ...
after modification too its giving wrong result.

8222 is the expected result.But it outputs the value as 5690
17,940
Posted By vidhyamirra
Thanks frans :) Below is my final code draft ...
Thanks frans :)
Below is my final code draft


#!/bin/bash
bfile=/tmp/BAD_BITFILES_`hostname`;
for i in /store/archive/TP_* ; do
echo "Processing main directory : $i"
for j in...
17,940
Posted By vidhyamirra
Johnson, Thanks for your corrections. Im a...
Johnson,

Thanks for your corrections. Im a beginner and your inputs helped me to learn more stuff

I tried checking in few tutorials, but i didnt understand.Can you please clarify me on the...
17,940
Posted By vidhyamirra
Fran, Yeah ...only a miminal information -...
Fran,

Yeah ...only a miminal information - total files in each sub-directory can be given.

Thanks for your inputs :) the above script solves my problem.
17,940
Posted By vidhyamirra
I ll have minimum 15 main directories under each...
I ll have minimum 15 main directories under each there are 10 -15 sub-directories

Each subdirectory will hold minimum 10000 files.

Thanks,
Vidhya
17,940
Posted By vidhyamirra
I get error saying all the files are corrupted. ...
I get error saying all the files are corrupted.


for FILE in $(ls $j) # This should work
// $j - last level subdirectory which has list of zipfiles without .zip extension
do
((n++));...
17,940
Posted By vidhyamirra
display progress details - for every 5000 files- when unzipping the files in directory
Frans,


for j in `find $i -name "abc*" -type d`; do
// Here $i is directory.
((i++)); (($i%5000)) || echo "$i files processed"
// Here it will display the count of sub-directories. I need to...
17,940
Posted By vidhyamirra
Unzip in bash script
My script works like this.
1. First for loop - checks if it can access zip parameters in a directory
2. If unzip fails for any of the file in that directory, then it goes inside the second for...
Showing results 1 to 11 of 11

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