Visit Our UNIX and Linux User Community

Search Results

Search: Posts Made By: xgringo
3,524
Posted By xgringo
Retry Logic But In Cron
Hard to explain but we get two sets of files in, and index file and image file. Often the image file arrives way later, so we just run this resubmit.sh script I'm going to show in a second....
1,719
Posted By xgringo
Email out after second resubmit, in spite of a time stamp update.
I have a resubmit script renames files in a directory, I want to notify via email the third time. I was just going to run the resubmit.sh script in cron every 15 minutes but the timestamp thing is...
1,904
Posted By xgringo
Some % of Garbage Collection
I need to write a python script that will
look at the local gc logs.
6 sys=0.00, real=0.06 secs]
2019-06-05T07:43:12.029-0500: 1072696.494: [Full GC (Ergonomics) [PSYoungGen:...
431
Posted By xgringo
Getting an error while loading class.
Hello Team,


java -cp "./RIPError.jar; ./RIP31.jar; ./RIP31msg_en_US.jar" ResubmitErrors -Ahost -P18505

Getting an error like:

Error: Could not find or load main class ResubmitErrors
...
793
Posted By xgringo
Check Error File attach and email zip file
I need something to say if these two file extensions exist in this directory *err and *rpt
zip up these files into one zip file and email them to me.

If they don't exist wait 2 hours and check...
973
Posted By xgringo
Windows Batch to Bash
This line is called in a windows batch file and I need to call the same 3 jars with Parms in a bash script.

cd "D:\ACDRIP\JARS"
java -cp ".\RIPError.jar;.\RIP31.jar;.\RIP31msg_en_US.jar"...
765
Posted By xgringo
Move, unzip, backup
#!/bin/bash
set -xv
errdir=/apps/awd/RPMSReportParser/dist/error
attach=/apps/awd/rip-optumprod/poller/attach
backup=/apps/awd/rip-optumprod/pollerstage/backup/
log=~/catcher.log

exec...
1,298
Posted By xgringo
I don't need to check connectivity but if config...
I don't need to check connectivity but if config files are the same in certain directories. I am also not trying to sync them exactly the config files will have different IP addresses in them and...
1,298
Posted By xgringo
Expect in Bash - and then compare md5sum
I'm running on a staging server. I will need to use expect and I think ssh or scp to the other boxes.

I need to see something like this....Enter:Host 1
Enter:Host 2

Enter full directory...
1,153
Posted By xgringo
Yeah they may not have changed in size, there may...
Yeah they may not have changed in size, there may be one character difference, so the size might be identical. That's why I was trying to use md5sum to compare and make sure everythying is...
1,153
Posted By xgringo
Compare md5sum two servers' setup
I'm trying to think of a way to compare two boxes and make sure their files will be the same. There may be extra files on one side and some on the other.

I also need to make sure the file content...
2,755
Posted By xgringo
No because there may need to be tweaks of them...
No because there may need to be tweaks of them depending on the client. And I you could set that up also but this is how they want it done.

---------- Post updated at 09:37 AM ---------- Previous...
2,755
Posted By xgringo
I understand that but it's not copying the file...
I understand that but it's not copying the file over to the directory and then doing the sed statement it just gives me the unrecognized
2,755
Posted By xgringo
I'm still getting when I removed /dev/null...
I'm still getting

when I removed /dev/null 2>&1

I get several of these errors

/apps/apache/httpd-fakedir: unrecognized service
2,755
Posted By xgringo
ls -d /apps/apache/*httpd* | while read -r name ...
ls -d /apps/apache/*httpd* | while read -r name
do if [ ! -f "/apps/apache/$name" ]
then cp /usr/local/scripts/examplescript.txt /usr/local/scripts/stage/ \
sed 's|examplehost|$name|g'...
2,755
Posted By xgringo
Thanks for your patience in advance. ...
Thanks for your patience in advance.


[root@/usr/local/scripts]# ls -ltr
-rwxrwxrwx 1 root root 253 Mar 8 09:41 examplelogconfig
drwxr-xr-x 2 root root 4096 Mar 8 09:51 stage
-rwxrwxrwx 1...
2,755
Posted By xgringo
Maybe from this you can tell what I'm attempting...
Maybe from this you can tell what I'm attempting at. I'm trying to get a list of all the jvm's running on webservers and then create a logrotated file for each one. However if the file already...
2,755
Posted By xgringo
I apologize for not doing the formatting...
I apologize for not doing the formatting properly. Still no answers?

---------- Post updated at 08:48 AM ---------- Previous update was at 08:46 AM ----------

I created this forloop, to create...
2,755
Posted By xgringo
Logrotate.d for every httpd instance for loop?
/etc/logrotate.d

-rwxr-xr-x 1 root root 263 Aug 28 23:17 httpd-stooffsprod
-rwxr-x--- 1 root root 273 Jul 10 2015 httpd-mwsi2hprodhist2
-rwxr-x--- 1 root root 261 Aug 11 17:28 httpd-mwsihist2...
932
Posted By xgringo
What about the date and time that's on the time...
What about the date and time that's on the time stamp? How do you do that?
713
Posted By xgringo
Complicated string
I have a data file example


10302|77747373|442422442|290209|244242|"234|2352"|92482892

It has about 5000 rows the same way in that field.

Needs to look like this.... I need to remove the...
932
Posted By xgringo
Want it to read the file name and then append date stamp at the end of file?
I was thinking something like

for i in `find . -name "*.log.Z"`; do mv $i name.log.Z

or something like that?
1,793
Posted By xgringo
Still not working, or maybe it means there aren't...
Still not working, or maybe it means there aren't any files in there that age?
>cleanup.sh
find: 0652-019 The status on /cddata/bi/logs/21l/data/cdr/*dat is not valid.
find: 0652-083 Cannot...
1,793
Posted By xgringo
Trying to do multiple dir's and multiple file names etc.
What am I missing?

find: 0652-009 There is a missing conjunction
find: 0652-009 There is a missing conjunction
find: 0652-009 There is a missing conjunction
find: 0652-009 There is a missing...
838
Posted By xgringo
and then I need to log the files deleted as well....
and then I need to log the files deleted as well.

---------- Post updated at 03:02 PM ---------- Previous update was at 03:00 PM ----------

Well I have about 25 more directories and with...
Showing results 1 to 25 of 60

 

Featured Tech Videos

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