Search Results

Search: Posts Made By: hartz
Forum: Linux 10-08-2011
2,116
Posted By hartz
Are you sure that someone (you?) did log in into...
Are you sure that someone (you?) did log in into the Linux computer from another computer?

"last -i" shows ALL logins, from anywhere.

"last -i | grep 192" will filter the output from last -i...
Forum: Linux 10-07-2011
2,116
Posted By hartz
I assume you did not try it with actual x'es ? ...
I assume you did not try it with actual x'es ?

last will show hostnames in stead of IP addresses if it knows the hostname. In this case the grep command will find nothing, but you can specify the...
Forum: Linux 10-04-2011
2,116
Posted By hartz
ANSWER 1. This is a large and loaded question. ...
ANSWER 1. This is a large and loaded question. Essentially your answer boils down to one thing: You need to access Windows Shares using Samba, not via SSH. SSH is a protocol which mainly gives you...
1,026
Posted By hartz
find does not have an -iname option that I know...
find does not have an -iname option that I know of ... did you mean -name ?
Forum: Solaris 10-03-2011
5,902
Posted By hartz
Run level S corresponds to milestone single-user....
Run level S corresponds to milestone single-user. Run level 2 corresponds to multi-user and Run level 3 corresponds to multi-user-server.

When shutting down, use the run levels, eg init S or init...
1,232
Posted By hartz
To parse the file as a sed script, it needs to...
To parse the file as a sed script, it needs to not contain the "sed " commands.

To use this method, first create a sed script file from those lines using

sed 's/sed //' < oldscript...
19,092
Posted By hartz
You may want to rename the files as a next step,...
You may want to rename the files as a next step, in which case it becomes handy to do it in the shell.

So for example - Put the below into a script to auto-rename the specified files. Otherwise...
Forum: Solaris 09-26-2011
2,491
Posted By hartz
I assume with "partion" you mean how the disks...
I assume with "partion" you mean how the disks are partitioned.

The answer for that is
from DISK in $( ls -l /dev/dsk/*c2 )
do
prtvtoc $DISK
doneRegarding Hardware model, memory, CPU and...
1,692
Posted By hartz
echo "ab01cde234" |sed 's/.*[^0-9]//' The...
echo "ab01cde234" |sed 's/.*[^0-9]//'

The above matches the longst string which ends in something which is not a member of [0-9]. It substitutes the match with "nothing". Thus it returns the...
Forum: Solaris 09-26-2011
4,928
Posted By hartz
The errors shown below are all relating to either...
The errors shown below are all relating to either SB0 or IB6. What is your system configuration?

The system built-in diagnostics depends highly on the firmware version - the newer, the better. ...
1,231
Posted By hartz
Yes, as mentioned by scottn, please do ask a...
Yes, as mentioned by scottn, please do ask a question. Give us some more information to work on. What do you expect to happen? What is in fact happening?

I will just answer some random questions,...
1,819
Posted By hartz
To replace the character at row,col with newchar,...
To replace the character at row,col with newchar, try

sed "${row} s/./${newchar}/${col}" <inputfile >outputfile
Forum: Fedora 09-23-2011
6,696
Posted By hartz
Gasp! You liar! <grin> I am of the opinion...
Gasp! You liar! <grin>

I am of the opinion that if two equally clever people were given access to two computers where neither of them have ever used a computer before, one given a computer...
17,789
Posted By hartz
To change the last field of every line to become...
To change the last field of every line to become "86" you can use

awk -F. '{$4="86"; print}'
987
Posted By hartz
The significance is as follow: First look at...
The significance is as follow:
First look at this : [ "$a"="$b" ]

The shell takes "$a", appends an "=" to it, and then it appends "$b" to it.
This is a single longer string containing an equal...
1,590
Posted By hartz
Or better than my last:
ls -lrt *access* | grep "Sep 23" | awk '{print $9}'|xargs awk '/23\/Sep\/2011.*[eE]rror/'


---------- Post updated at 07:35 AM ---------- Previous update was at 07:31 AM ----------



These...
1,590
Posted By hartz
How about: ls -lrt *access* | grep "Sep...
How about:


ls -lrt *access* | grep "Sep 23" | awk '{print $9}'|xargs awk '/23\/Sep\/2011/ && /[eE]rror/'
You get a noddy badge if you use "find" (one command) to eliminate the use of ls and...
5,006
Posted By hartz
awk '{printf ("%8.3f %8.3f %8.3f %8.3f...
awk '{printf ("%8.3f %8.3f %8.3f %8.3f .....etc\n", $1, $2, $3, ...)}'You get a noddy badge if you do it with purely using shell-builtins and without spawning a process for every line of input.
2,156
Posted By hartz
This will probably take some pre-work. I...
This will probably take some pre-work.

I imagine:

Counting the number of "fields" in each line and pre-pending it to the lines using awk -F^ '{print NF, $0}'

Parsing the file line by line in...
1,737
Posted By hartz
join the files
I think join is the easiest (and most elegant) solution for this. Join requires that the files be sorted by the joining column, so ... some pre-work.

#!/bin/sh
sort input > sorted.input
sort...
Forum: Solaris 09-23-2011
7,120
Posted By hartz
Then it is even easier.
You can still use Live Upgrade if your disks are mirrored, or even if you just have a few GB free space on a disk somewhere. The disks must be truly near completely full before I will give up!
...
2,156
Posted By hartz
sed 's/\([0-9ABC]\{11\}^\)/\n\1/g'For two lines...
sed 's/\([0-9ABC]\{11\}^\)/\n\1/g'For two lines in stead of 8. Assuming you always have 8....

sed 's/\([0-9ABC]\{11\}^\)/\n\1/5'

The above will insert the newline (\n) before the 5th...
1,572
Posted By hartz
echo Please Enter COMMAND and FILE: read choice...
echo Please Enter COMMAND and FILE:
read choice choice2
if [ "$choice" = "list" ]
then
ls $choice2
fi
---------- Post updated at 05:35 AM ---------- Previous update was at 05:32 AM...
Forum: Solaris 09-23-2011
3,767
Posted By hartz
Q-E-D
Hello nm-longnumber.

It is easier than you think so .... Just do it :-)

What exactly is Veritas SAN filesystems? Are you using vxfs and/or vxvm ?

If your applications and data is on...
Forum: Solaris 09-23-2011
7,120
Posted By hartz
First stabs at an unknown problem...
Hello christr.

You did not ask any questions, only explained a situation.

I am going to assume the question is:



The answer is: With careful planning you might be able to do it. If...
Showing results 1 to 25 of 25

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