Visit The New, Modern Unix Linux Community

Search Results

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

[notfound=continue]
989
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
13,635
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
53,549
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.
1,545
Posted By methyl
List of unique users: who -u | awk '{print $1}'...
List of unique users:
who -u | awk '{print $1}' | sort | uniq
4,020
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...
6,478
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
1,852
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
5,689
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...
3,590
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...
7,510
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}"
...
9,092
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...
860
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,102
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 .??* *
3,186
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...
2,903
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
2,502
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...
2,807
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
...
8,815
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...
4,101
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...
4,201
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...
2,564
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
11,973
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.
764
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".
27,795
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

 

Featured Tech Videos

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