Visit The New, Modern Unix Linux Community

Search Results

Search: Posts Made By: rbatte1
710
Posted By rbatte1
Could you store a 'previous last line' value...
Could you store a 'previous last line' value somewhere to use between runs? That way you could:-
Copy the log file to a temporary directory (to get a fixed file to work with)
Read the 'previous...
1,853
Posted By rbatte1
It's not a super clear question, but you might...
It's not a super clear question, but you might consider:-
If it's user login, these would be recorded in the system logs - look in /etc/syslog.conf or /etc/rsyslog.conf for the files you write to....
5,090
Posted By rbatte1
Hello rabrant, Sorry for the delayed...
Hello rabrant,

Sorry for the delayed response but I've been trying to think about this to find a good reason to do it. I would always recommend against it. It's not something I have done, and...
931
Posted By rbatte1
Dear faizlo, I have a few to questions pose...
Dear faizlo,

I have a few to questions pose in response first:-
Is this homework/assignment? There are specific forums for these.
What have you tried so far?
What output/errors do you get?...
Forum: AIX 01-06-2020
5,911
Posted By rbatte1
It depends quite what you are looking for. Do...
It depends quite what you are looking for. Do any of these help (sorry but I no longer have access to AIX so I'm a bit rusty!)lspv
lspv -v
lspv -l
lsvpcfg # (possibly with a -l...
3,409
Posted By rbatte1
One line sed option
How about using a single line sed like this:-sed "s/^C\( CALL.*'\(Gmax\|Gmin\|HS10\|HS2\|HS9\|Hmax\)'.*\)/\1/" source_file_name > target_file_name

It's a little messy to read, so:-

The s...
2,111
Posted By rbatte1
I'd be very worried by this approach. You are...
I'd be very worried by this approach. You are inviting someone to put something dangerous in a file and mentioning that as a parameter and then you will call/run that unrestricted code to control...
1,522
Posted By rbatte1
This is telling you that the value for pday is...
This is telling you that the value for pday is not set or not an integer, so your command as a whole becomes invalid. Could you sh -xv rmAgingFile.sh file*.log 2 and review the output to see what is...
2,333
Posted By rbatte1
Yes, the value of outvar will just hold all the...
Yes, the value of outvar will just hold all the content of your file. You might prefer to process the variable or create another by reading the file in a different way. It's up to you, but you can...
1,738
Posted By rbatte1
I must admit, I like jim mcnamara's neat...
I must admit, I like jim mcnamara's neat response. It made me wonder about the string often all of the kinds of Norway as an example where the string might exist embedded in another word. Is this a...
2,333
Posted By rbatte1
The outvar=`cat test.out` is not great from a few...
The outvar=`cat test.out` is not great from a few things:-

The backticks ` are deprecated and can make complex statements difficult to read. You would be better to wrap such code with $( and )
...
1,898
Posted By rbatte1
Okay, I'm sure we can help with that. A few...
Okay, I'm sure we can help with that. A few questions for clarity though:-
Must the filename in the fastconcatg directory be the prefix of the directory that the source was found in?
What do we...
6,583
Posted By rbatte1
Why single quotes anyway? They stop...
Why single quotes anyway? They stop interpretation of the string quoted. If you want to pass something that changes, how about one of these:-ssh $i "systemctl is-enabled ${j}"; # No...
2,109
Posted By rbatte1
From my suggestion in post 5, I'm sure you can...
From my suggestion in post 5, I'm sure you can attempt to replace the sub-process on line 2 (the bit between $( and )) such that the output it creates uses a loop based on a counter to create the...
2,109
Posted By rbatte1
Do you want something more like:printf --...
Do you want something more like:printf -- "/path/to/xxx.py \\\\\n%s\n\t--ref /path/to/file \\\\\n\t--run /path/to/data\n" \ # Set up the output format with fixed strings and an...
3,283
Posted By rbatte1
The problem is that your expression is matching...
The problem is that your expression is matching Listen followed by any number of spaces then 443. Your definition is explicit in being for 'any number of spaces' with the * sequence.

Do you...
1,389
Posted By rbatte1
Does the output from last show you who (and where...
Does the output from last show you who (and where from) people were logged in at that time? Look especially for lines that say down in them.

Does that help you?


It might help in future if...
2,251
Posted By rbatte1
Welcome hkoshekay, I have a few to questions...
Welcome hkoshekay,

I have a few to questions pose in response first:-
Is this homework/assignment? There are specific forums for these.
What have you tried so far?
What output/errors do you...
Forum: What is on Your Mind? 12-02-2019
5,934
Posted By rbatte1
Hello Neo and all, This is an excellent...
Hello Neo and all,

This is an excellent idea. I'm certainly not in the running and must apologise for having again been idle and returned to Emeritus status. I'm sure not to have surpassed by...
1,580
Posted By rbatte1
If you have them in a file, how about:-cut -f-3...
If you have them in a file, how about:-cut -f-3 -d"." input|sort|uniq -cWould that do? It's not quite the pretty output, but you get the detail you need.



I hope that this helps,
Robin
Forum: AIX 09-11-2019
11,012
Posted By rbatte1
I would suggest mirroring your loglv00 now too. ...
I would suggest mirroring your loglv00 now too.


Kind regards,
Robin
Forum: AIX 09-04-2019
11,012
Posted By rbatte1
My apologies for being away for a few days. ...
My apologies for being away for a few days. There should be no difference with the process because they will both do the same thing. If the lost LUN is now available and visible to the volume...
Forum: AIX 08-22-2019
11,012
Posted By rbatte1
You have lost access to a disk, hdisk37 How...
You have lost access to a disk, hdisk37

How is this provided? If it's a real disk, then it's broken. If it's SAN provided, then something has gone wrong in the provision.

If you can get the...
2,934
Posted By rbatte1
Could you just do this?:-tr "§" "|" < inputfile >...
Could you just do this?:-tr "§" "|" < inputfile > outputfile




I hope that this helps,
Robin
1,017
Posted By rbatte1
Rather that ps -ef | grep pmon | grep -v grep |...
Rather that ps -ef | grep pmon | grep -v grep | awk ...... might I suggest ps -ef | grep [p]mon | ....... instead. The square brackets are a pattern match that has only one option, but because there...
Showing results 1 to 25 of 500

 

Featured Tech Videos

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