👤
Home Man
Search
Today's Posts
Register

Showing results 1 to 25 of 500
Search took 0.11 seconds.
Search: Posts Made By: bakunin
Forum: UNIX for Advanced & Expert Users 06-22-2018
Replies: 7
Views: 519
Posted By bakunin
I beg to differ: the script in question has to be...

I beg to differ: the script in question has to be called from somewhere to be started. Write a "wrapper script" so that your script is called which always exits with 0 regardless of what happens....
Forum: AIX 05-30-2018
Replies: 16
Views: 1,551
Posted By bakunin
In AIX (many) daemons are started with a sort-of...

In AIX (many) daemons are started with a sort-of "super-daemon" called SRC (system resource controller). It is possible to change the way a process controlled by it is started (or run) by using the...
Forum: HP-UX 06-19-2018
Replies: 17
Views: 1,197
Posted By bakunin
It seems to me that you might profit in...

It seems to me that you might profit in understanding from a bit of theory behind NTP and its workings. Here it goes:

Within a network it is vital to keep the timekeeping of the connected systems...
Forum: AIX 06-15-2018
Replies: 8
Views: 471
Posted By bakunin
OK, here is another idea: these configure-scripts...

OK, here is another idea: these configure-scripts write their results to a file which is reused in consecutive runs. This means that these consecutive runs of the configure-script are not exactly the...
Forum: AIX 06-13-2018
Replies: 8
Views: 471
Posted By bakunin
OK, thanks for the follow-up. Not everything...

OK, thanks for the follow-up. Not everything makes sense yet but we are making progress.



Not to my knowledge. But let us state for the record what we have so far:

You try to run a configure...
Forum: Solaris 02-09-2018
Replies: 13
Views: 1,057
Posted By bakunin
moving this Solaris-related thread over to the...

moving this Solaris-related thread over to the respective board.
Forum: AIX 06-12-2018
Replies: 8
Views: 471
Posted By bakunin
I can only second what rbatte1 already said: ...

I can only second what rbatte1 already said:

- which package do you try to compile?
- which compiler do you use?
- what EXACTLY are the diagnostic messages (sorry, but to find the culprit from...
Forum: Shell Programming and Scripting 05-26-2018
Replies: 7
Views: 498
Posted By bakunin
I think the same as obviously RudiC does: perhaps...

I think the same as obviously RudiC does: perhaps the empty spaces are not what they seem to be (tabs instead of spaces or the like). Modify your code above to:

sed 's/^file[[:space:]]*//;...
Forum: AIX 05-25-2018
Replies: 3
Views: 385
Posted By bakunin
See:...

See: https://www.unix.com/aix/200379-tip-dev-filling-because-malformed-ibm-script.html

I hope this helps.

bakunin
Forum: Shell Programming and Scripting 05-22-2018
Replies: 14
Views: 781
Posted By bakunin
For this kind of situations there is the eval...

For this kind of situations there is the eval keyword. Its use is always the last resort, so this is not a "recommendation" and the advice is to handle it with extreme care.

Since you don't show...
Forum: Linux 05-19-2018
Replies: 7
Views: 473
Posted By bakunin
Once you stop being amused from my sarcasm you...

Once you stop being amused from my sarcasm you might notice the subtle difference between what i suggested and what you - by your own admission - executed. I am not sure but what you posted suggests...
Forum: What is on Your Mind? 05-19-2018
Replies: 2
Views: 268
Posted By bakunin
OK. I don't care what it is you are selling - i...

OK. I don't care what it is you are selling - i want to buy it. ;-))

First level support has in most areas already deterioriated to a point where Google (even without any internet connection) is...
Forum: Programming 05-17-2018
Replies: 7
Views: 543
Posted By bakunin
You seem to not understand how executable code is...

You seem to not understand how executable code is produced from source code. Here is the short version and it is the same for every compiled language:

When a compiler translates source code it...
Forum: Shell Programming and Scripting 05-11-2018
Replies: 14
Views: 781
Posted By bakunin
Ok, let us start with the easy part: the most...

Ok, let us start with the easy part: the most basic thing you have to take care of is the difference between these systems: HP-UX has (IIRC) a Korn Shell as default shell, some Linux systems (sorry,...
Forum: UNIX for Beginners Questions & Answers 05-09-2018
Replies: 3
Views: 275
Posted By bakunin
RudiC already told you how to do it but you might...

RudiC already told you how to do it but you might profit from understanding why your code did not work:

The reason why this doesn't work is that "NR" is only updated when records are read....
Forum: UNIX for Beginners Questions & Answers 05-03-2018
Replies: 4
Views: 369
Posted By bakunin
I can't offer you a (single) command but a...

I can't offer you a (single) command but a procedure how to do it - even with a standards-conforming (non-GNU) sed:

- First, save your pattern space to the hold space.

- Next, you use the...
Forum: Linux 04-30-2018
Replies: 7
Views: 473
Posted By bakunin
Well, sorry for being so dumb that i immediately...

Well, sorry for being so dumb that i immediately recognised apt-cdrom as a valid command and for being ignorant enough to think that everybody can read a man page just the way i do.

Issue man...
Forum: UNIX for Beginners Questions & Answers 04-29-2018
Replies: 8
Views: 346
Posted By bakunin
The real question is not where the output goes...

The real question is not where the output goes (when you start a process with nohup per default its output goes to ./nohup.out) but where the input is supposed to come from.

When you start a...
Forum: Shell Programming and Scripting 04-26-2018
Replies: 7
Views: 341
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 04-19-2018
Replies: 4
Views: 199
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 04-16-2018
Replies: 1
Views: 140
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: Shell Programming and Scripting 04-16-2018
Replies: 8
Views: 274
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: UNIX for Beginners Questions & Answers 04-03-2018
Replies: 1
Views: 256
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: Shell Programming and Scripting 08-23-2012
Replies: 9
Views: 1,164
Posted By bakunin
You know what? You are right. Upon taking a...

You know what? You are right. Upon taking a nights sleep and a fresh look i come to the conclusion your solution is more robust than mine.

Most of my colleagues start having something else to do...
Forum: UNIX for Beginners Questions & Answers 04-03-2018
Replies: 18
Views: 725
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...
Showing results 1 to 25 of 500

 


All times are GMT -4. The time now is 08:57 AM.

Unix & Linux Forums Content Copyrightę1993-2018. All Rights Reserved.
×
UNIX.COM Login
Username:
Password:  
Show Password