Unix/Linux Go Back    

Showing results 1 to 25 of 500
Search took 0.11 seconds.
Search: Posts Made By: bakunin
Forum: Shell Programming and Scripting Linux 3 Hours Ago
Replies: 6
Views: 108
Posted By bakunin
You can use a so-called rule for this kind of...

You can use a so-called rule for this kind of tasks:

/<regexp>/ {
command1
command2
command3
....
}

will execute command1, command2 and command3...
Forum: Shell Programming and Scripting Linux 1 Week Ago
Replies: 4
Views: 131
Posted By bakunin
True. Still, as a measure of safety i would rule...

True. Still, as a measure of safety i would rule out trailing or leading spaces:

sed -n '/^[[:blank]]*//;s/[[:blank:]]*$//;/ /!p' > /result/file

I hope this helps.

bakunin
Forum: Shell Programming and Scripting Linux 1 Week Ago
Replies: 8
Views: 157
Posted By bakunin
I think what Don is trying to tell you is: this...

I think what Don is trying to tell you is: this command

gfind . -depth -name "somefile" -type f -writable

will find some list of files. Since it is repeated eleven times it will find (and hence...
Forum: Shell Programming and Scripting Linux 1 Week Ago
Replies: 1
Views: 108
Posted By bakunin
No problem, but PLEASE: put it here in plain text...

No problem, but PLEASE: put it here in plain text format and enclosed in CODE-tags. Looking at a graphics-file in PNG-format, which will explicitly forbid copying and pasting as a means to refer to...
Forum: UNIX for Beginners Questions & Answers Linux 3 Weeks Ago
Replies: 1
Views: 216
Posted By bakunin
Yes: do your homework - yourself! If you need...

Yes: do your homework - yourself! If you need help for homework/coursework please use the special board (https://www.unix.com/homework-and-coursework-questions/) for that. Notice that special rules...
Forum: UNIX for Beginners Questions & Answers Linux 3 Weeks Ago
Replies: 18
Views: 578
Posted By bakunin
I can't understand why you steadfastly insist on...

I can't understand why you steadfastly insist on using the C-shell. From your output:

/bin/csh
/usr/bin/csh # these two are C-shells

/bin/sh
/usr/bin/sh # these two are...
Forum: Shell Programming and Scripting Linux 3 Weeks Ago
Replies: 5
Views: 238
Posted By bakunin
The following is probably not the answer you...

The following is probably not the answer you hoped for - i will tell you what you did do wrongly, why it was wrong and how you could do it better. You will still have to implement what i tell you...
Forum: UNIX for Beginners Questions & Answers Linux 3 Weeks Ago
Replies: 4
Views: 231
Posted By bakunin
This is less trivial than it seems to be. A...

This is less trivial than it seems to be. A process can have several types of memory allocated:

1) real memory
This is real RAM the process uses.

2) virtual memory
This is real memory as...
Forum: Shell Programming and Scripting Linux 4 Weeks Ago
Replies: 10
Views: 328
Posted By bakunin
In addition to what rdrtx1 already explained: ...

In addition to what rdrtx1 already explained:

If you want to change something only on certain lines and not on others you should do that in sed, not outside, with grep::

sed '/^special_line/...
Forum: Shell Programming and Scripting Linux 03-13-2018
Replies: 5
Views: 357
Posted By bakunin
First off: you won't need an array at all, so is...

First off: you won't need an array at all, so is there any other reason (outside of you thinking you'd need one) for it?

If not: a for-loop gets a list of values and runs the loops body with each...
Forum: HP-UX Linux 03-06-2018
Replies: 9
Views: 803
Posted By bakunin
First off: i think RudiC is correct in his...

First off: i think RudiC is correct in his analysis as to where the errors come from. But the - real - problem is something completely different:

Try to think like an engineer does and solve...
Forum: HP-UX Linux 03-05-2018
Replies: 9
Views: 803
Posted By bakunin
No. Actually it is lke this (i will do this step...

No. Actually it is lke this (i will do this step by step so that you can understand what is done):

| gzip > dir.tar.gz

This means that gzip is getting data from stdin, packing them and sending...
Forum: AIX Linux 02-27-2018
Replies: 10
Views: 876
Posted By bakunin
Not the syslog directly, but the network...

Not the syslog directly, but the network connecction as a whole. Can you (for instance) do ftp, telnet, ssh or any other protocol to the destination host. Can you ping it?

Notice that - as there...
Forum: Shell Programming and Scripting Linux 02-25-2018
Replies: 2
Views: 329
Posted By bakunin
Just on a side note, this: is probably...

Just on a side note, this:



is probably a typo and should read "IX". But it seems that you could collapse the whole block using a regexp instead of fixed values, could't you?

{gsub (/<sense...
Forum: Shell Programming and Scripting Linux 02-24-2018
Replies: 2
Views: 297
Posted By bakunin
Yes, but it would be cumbersome and plain ugly....

Yes, but it would be cumbersome and plain ugly. Writing scripts (i suppose you need it in a script) is all about clarity and making it easy to understand what is done, therefore you should do it in...
Forum: UNIX for Beginners Questions & Answers Linux 02-24-2018
Replies: 2
Views: 302
Posted By bakunin
How am i to know what you mean? bakunin ...

How am i to know what you mean?

bakunin

_________________
PS: sorry, but as long as you don't describe what exactly you mean by "check" - and perhaps add more detail about what tools you have...
Forum: Red Hat Linux 02-15-2018
Replies: 15
Views: 635
Posted By bakunin
I don't think this is the same LUN because...

I don't think this is the same LUN because otherwise you would see the filesystems/partitions/whatever on it. Notice that LUNs have an identifier (the so-called "WWN" and you can identify it by this....
Forum: Programming Linux 02-14-2018
Replies: 14
Views: 896
Posted By bakunin
OK, now i understand better what your question is...

OK, now i understand better what your question is about. For reference i modified your program this way:

#include <iostream>
using namespace std;

int main()
{
const int index=1000;
...
Forum: Programming Linux 02-14-2018
Replies: 14
Views: 896
Posted By bakunin
I am not sure about how basic you need an...

I am not sure about how basic you need an explanation because the man page is pretty self-explanatory. So just give me some feedback if this doesn't make you get it:

Consider a "normal" variable...
Forum: AIX Linux 02-07-2018
Replies: 10
Views: 876
Posted By bakunin
You might want to read about the "System Resource...

You might want to read about the "System Resource Controller" or SRC, for short. It is sort of a super-daemon to start other daemons (called "subservers" or "subsystems", without wanting to go into...
Forum: AIX Linux 02-07-2018
Replies: 10
Views: 876
Posted By bakunin
hmm, you (or, rather, the firewall boys) do...

hmm, you (or, rather, the firewall boys) do understand there are two rules needed, yes? One for the connection in one direction itself, the second for the acknowledgements back to the client. Maybe...
Forum: Shell Programming and Scripting Linux 02-07-2018
Replies: 6
Views: 376
Posted By bakunin
Furthermore there is an additional problem:...

Furthermore there is an additional problem: depending on the LV you may need more than one PP to increase the LV by 1 LP. These PPs may (depending on the setting of the "strictness" property) have to...
Forum: Shell Programming and Scripting Linux 02-06-2018
Replies: 6
Views: 432
Posted By bakunin
Under which user account did you run the script?...

Under which user account did you run the script? If it was not root this might have been the problem.

Furthermore, to copy a (sub-)tree recursively it is generally better to use tar instead of cp...
Forum: Shell Programming and Scripting Linux 02-02-2018
Replies: 2
Views: 265
Posted By bakunin
When a bash shell starts several scripts are...

When a bash shell starts several scripts are executed automatically. You can put whatever commands you want to have executed automatically there.

First, a (general) script is executed:...
Forum: UNIX for Beginners Questions & Answers Linux 01-18-2018
Replies: 17
Views: 698
Posted By bakunin
The thing is, HTML and CSV are not hundred...

The thing is, HTML and CSV are not hundred percent identical. In HTML you can use that rowspan and colspan clauses (to <td>) to expand cells across row/column boundaries. There is no such thing in...
Showing results 1 to 25 of 500

 


All times are GMT -4. The time now is 08:51 PM.