Search Results

Search: Posts Made By: blacksteel1988
899
Posted By blacksteel1988
Help printing string
Hi,

I have a file containing many times the word "IPaddress". and i need a command that finds that string or word and print it only once. I've tried the following but they print a line for each...
Forum: AIX 10-16-2013
18,736
Posted By blacksteel1988
CarloM, thank you i was actually working with: ...
CarloM, thank you i was actually working with:

tar -cvf /varios/restore/test.tar -X excludefile.txt /jfma/test1/

and after that i was going to execute the gzip. Two sentences to be clear, but...
Forum: AIX 10-16-2013
18,736
Posted By blacksteel1988
Sorry Alister, and correct me if im wrong (and i...
Sorry Alister, and correct me if im wrong (and i believe i am) but isn't it already -f in my statement? tar "-cvf"....

tar -cvf /varios/restore/test.tar -X /jfma/test1/excludefile /jfma | gzip -c...
Forum: AIX 10-16-2013
18,736
Posted By blacksteel1988
z flag not recognized
Hi, thank you for your quick reply... Thing is im on AIX 6.1 and it doesnt accept the "z" flag. I already removed the ":" from my exclude file though.
Forum: AIX 10-16-2013
18,736
Posted By blacksteel1988
Exclude Directories in my tar command
Hi, im having some issues after i execute the next command:

tar -cvf /varios/restore/test.tar -X /jfma/test1/excludefile /jfma | gzip -c > /varios/restore/test.tar.gz

this creates the desired...
18,503
Posted By blacksteel1988
No, im sorry it doesnt. "AIX 5.2". Any other...
No, im sorry it doesnt. "AIX 5.2". Any other suggestion?

thanks in advance.
18,503
Posted By blacksteel1988
Ok sorry... grep 'Process BNKEL LOAD LOTS'...
Ok sorry...

grep 'Process BNKEL LOAD LOTS' EJELOG02092013.log | tail -1

this gives me :

Mon Sep 2 15:21:06 2013 - Process Ended BNKEL LOAD LOTS <= 50 TRXS

but i would like to get the...
18,503
Posted By blacksteel1988
Grep in a log file within a time range (hour)
Hi, im trying to write a grep script that returns me the last inputs added in the last hour in the log file. Literally i have nothing yet but:

grep 'Line im looking for' LOGFILE.log | tail -1
...
9,335
Posted By blacksteel1988
Worked. Thank you for all Yoda :b::b::b:
Worked. Thank you for all Yoda :b::b::b:
9,335
Posted By blacksteel1988
One more thing...plz
Well, thanks again... it worked....

"Amount of mails pending : 68"

Is there anything that can be done with the considerables spaces between the colon ":" and my query result "68" ?
...
9,335
Posted By blacksteel1988
Sorry, same result... "Amount of mails...
Sorry, same result...

"Amount of mails pending :
16 "
9,335
Posted By blacksteel1988
Well it worked, thank you so much Yoda. now... i...
Well it worked, thank you so much Yoda. now... i have another question... my code is now like this:


echo ^[[32m MAILS PENDING HN ^[[37m
VAR1=`query1.sh`
DISP1="Amount of mails pending ...
9,335
Posted By blacksteel1988
Help with error "por: 0403-012 A test command parameter is not valid."
Hi, im asking for help with the next script:


echo ^[[32m Mails Pending ^[[37m
VAR1=`query1.sh`

if [ $VAR1 -ge 200 ];
then
if [ $VAR1 -ge 300 ]
then
printf...
1,248
Posted By blacksteel1988
Hi joeyg, thanks for the quick response and...
Hi joeyg,

thanks for the quick response and thank you for your observation, i've already modified that and what i got now is this:


{
if [ $VAR -gt 11 ]
then
if [ $VAR -ge 17 ]
...
1,248
Posted By blacksteel1988
Help with nested "if"
Hi, i just wanna ask for some help with this

while true
do
clear
date
echo AIX 630 AMOUNT OF FEPs
VAR=`ps -eaf | grep fep2 | grep cajaBMSz | wc -l`


{
if [ $? -gt 10 && -le 20 ]
...
4,211
Posted By blacksteel1988
Hi... Sorry to reply until now... the info you...
Hi... Sorry to reply until now... the info you gave me helped me to make my script work, but in the end i totally change it using the first one as example the final script is this one:


...
4,211
Posted By blacksteel1988
Ok, i need that i.e. the export did not was...
Ok, i need that i.e. the export did not was execute successfully displays any other message of warning. Why? because it has to be reported to the dba's or system admins for a fast solution since the...
4,211
Posted By blacksteel1988
i really don want to remove duplicates, cause...
i really don want to remove duplicates, cause there aint no duplicates... my problem now is that whenever the export terminate successfully or unsuccesfully it recognizes it like a successfull...
4,211
Posted By blacksteel1988
logfile example
. exporting snapshots
. exporting snapshot logs
. exporting job queues
. exporting refresh groups and children
. exporting dimensions
. exporting post-schema procedural objects and actions
....
4,211
Posted By blacksteel1988
Hi... me again... i find out soumething today......
Hi... me again... i find out soumething today... when you say

LINE=`grep successfully /variosnew/fullexports/IMAGES/full_imp_images.log`

you are including "unsuccessfully" like a green... and...
4,211
Posted By blacksteel1988
It works perfectly.... Thanks a lot!!! ...
It works perfectly.... Thanks a lot!!!

---------- Post updated at 09:21 AM ---------- Previous update was at 09:20 AM ----------

Im using AIX.. But will save your commento for future...
4,211
Posted By blacksteel1988
will try it and post you back how ir goes. in...
will try it and post you back how ir goes. in advance, thanks for your help.
4,211
Posted By blacksteel1988
That cat command return "Export terminated...
That cat command return "Export terminated successfully Without Warnings" that i want in green
4,211
Posted By blacksteel1988
Assign specific Color to the outputs in script
Hi,

Im programming an interactive menu that verifies the exports of my oracle DB, and im having some trouble finding a process that outputs for example a green command line when the export...
Forum: Red Hat 11-25-2011
4,981
Posted By blacksteel1988
Same trouble
Ok, i already re installed the DB and im having the same problem, and this time my ORACLE_SID value is PRUEBADB. Any thoughts???
Showing results 1 to 25 of 33

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