Search Results

Search: Posts Made By: methyl
101,215
Posted By methyl
Try "egrep". Also if your comparison string does...
Try "egrep". Also if your comparison string does not include space characters be careful about extra space characters on the command line.

egrep -h "stringA|stringB" filename
15,994
Posted By methyl
That's a MySQL error message. Do you normally...
That's a MySQL error message. Do you normally access the database as root?


The TERM message is coming from Shell because there is no value in $TERM (terminal type). This however means that the...
7,057
Posted By methyl
A function is a function within your current...
A function is a function within your current shell. We don't need to start another bash because we can just refer to the function like it is a command.
Guessing the $idir contains a valid...
Forum: HP-UX 04-14-2015
5,419
Posted By methyl
Try working your way through the available...
Try working your way through the available options:

[notfound=continue]
30,868
Posted By methyl
The unix command "dirname" does this.
The unix command "dirname" does this.
1,584
Posted By methyl
You may find it useful to run a very simple...
You may find it useful to run a very simple one-off cron which will show you the cron environment.

e.g.

set >/tmp/mylog.log

Then compare the output from the command "set" when running from...
Forum: War Stories 02-08-2012
21,375
Posted By methyl
Difficult situation admin_xor . You dealt with...
Difficult situation admin_xor . You dealt with the situation well on the back of an emergency ... but did you have the authority to make the change?
In a formal environment you needed authority from...
20,208
Posted By methyl
find . \( -name file1.txt -o -name file2.txt \)...
find . \( -name file1.txt -o -name file2.txt \) -print
33,367
Posted By methyl
It is painful when someone cannot post the...
It is painful when someone cannot post the version of HP-UX (which appears clearly in uname -a).

Anyway, assuming that this is a modern version, /sbin/sh will be the Posix Shell.

Corona688 has...
Forum: HP-UX 01-10-2013
16,477
Posted By methyl
In HP-UX zombie processes which are waiting for a...
In HP-UX zombie processes which are waiting for a hardware resource will not die without a reboot.

Can you post an example process tree?
How many zombie processes do you have on a bad day? Do...
2,084
Posted By methyl
List of unique users: who -u | awk '{print $1}'...
List of unique users:
who -u | awk '{print $1}' | sort | uniq
Forum: Solaris 11-14-2012
67,655
Posted By methyl
Personally I would redirect the two output...
Personally I would redirect the two output chanels to different files.
2>error_log.txt 1>normal_log.txt
Really depends on the application.
3,016
Posted By methyl
This is a Shell "Here" document. All the ensuing...
This is a Shell "Here" document. All the ensuing lines up to but not including the string $END$ are presented on the input read channel of the program $AMS/bin/procmon .
There should be a...
3,179
Posted By methyl
This is a foolish action which is quite likely to...
This is a foolish action which is quite likely to damage your data and can result in a system which never works again.

Btw. CentOS is Linux variant. It is not unix.

However if this is a proper...
2,362
Posted By methyl
Please post sample data (very important that the...
Please post sample data (very important that the data includes lines containing one or more dollar character and some lines with various numbers of backslash characters) , the commands you typed, the...
5,433
Posted By methyl
What Operating System and version are you...
What Operating System and version are you running? There is no consistency on tftp implementations.
Is there a "END" or "QUIT" at the end of the tftp parameter file?
Did you create both files with...
9,359
Posted By methyl
@224an has the solution. In the second instance...
@224an has the solution.
In the second instance there is definitely a trailing space at the end of the second line.

To inspect the script, try this sed command which is designed to make...
Forum: HP-UX 09-12-2012
2,363
Posted By methyl
Learn Backup and Restore to Disaster Recovery...
Learn Backup and Restore to Disaster Recovery level. This is the first and most important responsibility of the Systems Administrator.
Practice, rehearse, be confident and competent.
Forum: HP-UX 09-07-2012
7,190
Posted By methyl
I don't think that HP-UX top is suitable for...
I don't think that HP-UX top is suitable for further processing because the output is formatted with VDU control sequences and only the first page of process list is output.

What figure are you...
12,950
Posted By methyl
Let's pick one of the tests and assume that...
Let's pick one of the tests and assume that OutputW and OutputOK are other scripts or local functions.


There is a basic logic error here. The main condition does not work unless perhaps there is...
6,485
Posted By methyl
Please post what Operating System and version you...
Please post what Operating System and version you are running and what Operating System and version your friend is running.
Please post what commands were used to compile the program on each...
43,946
Posted By methyl
@kraljic To answer your main theme: It is...
@kraljic
To answer your main theme:

It is recommended to specify the full path when executing a script and have a correct Shebang line in the script. This is unambiguous and quick.
It is not...
8,716
Posted By methyl
Nearly there but the echo statements do not match...
Nearly there but the echo statements do not match the tests. The Conditional Expression syntax "[[ .....]]" is not needed.

#!/bin/ksh

for checkdir in dir*
do
echo "Checking ${checkdir}"
...
1,426
Posted By methyl
Have you tried: ls -lad * Or if that...
Have you tried:
ls -lad *

Or if that doesn't work on you O/S as a non-root user (I can't test it from here):

ls -lad .??* *
12,324
Posted By methyl
As others have pointed out, you cannot edit a...
As others have pointed out, you cannot edit a file without opening the file. If all you want to do is replace or insert or insert a single line, the simplest and quickest way would be to do it the...
Showing results 1 to 25 of 500

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