Search Results

Search: Posts Made By: methyl
Forum: HP-UX 04-14-2015
5,467
Posted By methyl
Try working your way through the available...
Try working your way through the available options:

[notfound=continue]
1,596
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: HP-UX 01-10-2013
16,537
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...
Forum: Solaris 11-14-2012
67,848
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.
2,101
Posted By methyl
List of unique users: who -u | awk '{print $1}'...
List of unique users:
who -u | awk '{print $1}' | sort | uniq
5,479
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,435
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,378
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,231
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...
6,546
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...
8,797
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}"
...
45,273
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...
1,151
Posted By methyl
Further to Other Posters: There are excess...
Further to Other Posters:

There are excess semi-colons in the post. This is Shell not Oracle or Perl. Should be:
if [ $# -lt 2 ]
then
exit 1
fi
The script checks whether the number or...
1,453
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,881
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...
3,931
Posted By methyl
It is impossible to have two directories with the...
It is impossible to have two directories with the same name in the same parent directory.

What do you get for:

ls -lia |grep us000xyz_R5 | sed -n l # Make control codes visible
Forum: HP-UX 08-25-2012
3,118
Posted By methyl
Please post what Operating System and the exact...
Please post what Operating System and the exact version you are running, and what Shell you use. Obviously this is HP-UX, but which version?
Are you logged in as the root user?
What is SMH? Please...
3,515
Posted By methyl
What Operating System and version are you...
What Operating System and version are you running?
Which Shell is this?

I can't follow your code because it is much too complex.
Idea:
for dir in "directory1" "directory2" "directory3"
do
...
13,078
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...
5,485
Posted By methyl
The idea here is to ensure that we get lists of...
The idea here is to ensure that we get lists of files in exactly the same order, find out the checksum for each file, then compare the two lists. We do the compare on the source computer in case we...
5,812
Posted By methyl
jim mcnamara has got it. You are sometimes...
jim mcnamara has got it.
You are sometimes picking up nascent files just after they have been created and before they contain data (hence the strange permissions). You could equally have been...
3,246
Posted By methyl
Assuming that your file has records terminated...
Assuming that your file has records terminated with carriage-return line-feed, we can probably eliminate the format of the file.


There is a little-known "feature" of Microsoft Outlook where a...
Forum: Ubuntu 08-23-2012
20,811
Posted By methyl
It's a separate download from Oracle. You need to...
It's a separate download from Oracle. You need to download the one which matches your Operating System.
1,247
Posted By methyl
1) Surely "Echo" should be lower case "echo" ? ...
1) Surely "Echo" should be lower case "echo" ?

2) No idea about the "let" because none of the code posted contains "let".
33,525
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...
Showing results 1 to 25 of 500

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