Search Results

Search: Posts Made By: rbatte1
Forum: What is on Your Mind? 05-28-2020
13,468
Posted By rbatte1
Hello Neo, This sounds positive to me. I've...
Hello Neo,

This sounds positive to me. I've too often had ticketing systems at work replaced and all the old history and knowledge get lost. One sites there going, "I know we did this last year,...
75,031
Posted By rbatte1
Would you not be better re-writing the loop to...
Would you not be better re-writing the loop to have the loop read the data in rather than have it piped to? That might sound confusingly similar, but some shells will start a sub-process when you...
14,180
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...
15,763
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....
4,295
Posted By rbatte1
The need to create such an oddly named file is a...
The need to create such an oddly named file is a little concerning. You would later on have to read it in a similarly convoluted way and your backup process may not like it either.

Can you...
4,026
Posted By rbatte1
Welcome BeckyMoore, When you say that you...
Welcome BeckyMoore,

When you say that you want to download an image, it's really rather vague. For the image, do you mean:-
A visible picture on a website
A software installer image
The...
10,953
Posted By rbatte1
If it's not a big file, you can get a simple to...
If it's not a big file, you can get a simple to understand but clunky way by using the output of grep -n "start" $filename and grep -n "end" $filename to get you the record numbers to search between...
21,956
Posted By rbatte1
You probably need to add a search record in your...
You probably need to add a search record in your resolv.conf file. The manual page has the appropriate syntax. You can add multiple suffixes if you need to. Do you have a selection you would want...
2,598
Posted By rbatte1
Welcome Srikavya_manda, I have a few to...
Welcome Srikavya_manda,

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...
15,816
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...
9,256
Posted By rbatte1
Can you show us how you tried to redirect the...
Can you show us how you tried to redirect the output?

Please wrap your commands and the output in CODE tags. To do this, you can simply highlight your text that is code or data and then click on...
9,256
Posted By rbatte1
It might be that you are not getting output but...
It might be that you are not getting output but actually it is errors being displayed. Standard output (good things you want to see) are written to file descriptor 1. Standard errors (bad things...
5,617
Posted By rbatte1
Hello ctrld, I have a few to questions pose...
Hello ctrld,

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?...
8,420
Posted By rbatte1
Perhaps the SPOOL command will only write to a...
Perhaps the SPOOL command will only write to a new file and refuse to append or overwrite an existing one.

Do you get any messages if you remove the SET FEEDBACK OFF and try it again with the file...
4,104
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?...
8,753
Posted By rbatte1
The privilege you have permits you to become the...
The privilege you have permits you to become the superuser, but not to directly run anything from your account but as the superuser.

If you can become the superuser, then I presume you are the...
2,183
Posted By rbatte1
Hello pranabpal, It would have been better...
Hello pranabpal,

It would have been better to show what you had tried so we can see your preferred style/tools etc. That way we would find a solution that you could understand better when you...
4,268
Posted By rbatte1
Hello mrAibo, You might get some joy from...
Hello mrAibo,

You might get some joy from the output of the stat command. The file is Modified as it is created and Changed as the content is written, however this might not be safe for a polling...
16,743
Posted By rbatte1
I defer to your superior offering (and I will...
I defer to your superior offering (and I will steal it if I ever have a similar need ;))



Kindest regards,
Robin
16,743
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...
7,811
Posted By rbatte1
What do these give you?grep -n '' file1 | head ...
What do these give you?grep -n '' file1 | head
grep -n '' file2 | headI agree that this is most likely peculiar characters in the data. To see if we can spot something, can you:head file1 | od -tx...
8,777
Posted By rbatte1
I would think that you are spending a lot of time...
I would think that you are spending a lot of time in your loop repeatedly opening the database connection. Could you build all the queries into a single command file and execute one DB read? The...
11,390
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...
Forum: AIX 01-06-2020
15,820
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...
10,868
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...
Showing results 1 to 25 of 500

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