Can the file change anywhere? Or can lines only be added to it? If lines can only be added to it, just keep track of the last line number:
Then a while later, do:
Once you're done, you can print the length again. You can do it altogether this way:
I have a Unix based server running Sagitta and the server is giving me an error of 4b10004 and my research tells me this is an EPROM issue, which means the processor needs to be flashed or repaired. Once up and running where can I go to get updates for Unix? (1 Reply)
Hi all,
I would like to perform multiple updates within a single database open and close.
Box: solaris
dB: informix
This is how i do perform for single update
dbaccess <dbname> -<<EOF
update table1 set col1=1 where col2=1
EOF
i have the col1 values in a file (some 1000 values)... (1 Reply)
All,
I'm updating my redhat servers by directly connecting to internet (redhat network). After I connecting to the internet, I see some packages in package updater.I'm trying to do update but its stucking up when it is starting updating the server. Any ideas. Thanks (4 Replies)
hello all
I Installed CenTOS 5.5 and i've Run yum update command
every thing went smoothly but i got the following error at the end
6:kdebase-3.5.4-21.el5.centos.1.i386: Insufficient space in download directory /var/cache/yum/updates/packages
* free 6.0 M
* needed 28 M
... (2 Replies)
Hi,
Im using Fedora version 23 (latest upgrade and upates). Currently to receive the updates, I use:
su -c 'yum update'
This works fine, but I get:
yum command has been deprecated, redirecting to '/usr/bin/dnf update'.
See 'man dnf' and 'man yum2dnf' for more information.
To... (1 Reply)
This cmd will update the user's crontab with the quoted line.
But how to script the update using a previously stored variable?
crontab -l | awk '{print} END {print "* * * * * echo test >> /tmp/testing"}' | crontab
crontab -l | awk '{print} END {print "$storedvariable"}' | crontab
Does not... (3 Replies)
On Hp-ux,I'm not talking about security patches.But free products like SecureShell.
How to know if update is avaliable?On Solaris11 is possible using pkg update.
On hpux?Some tool to check for outdated products and tell if new version is avaliable?
---------- Post updated at 03:24 AM... (1 Reply)
Discussion started by: Linusolaradm1
1 Replies
LEARN ABOUT OPENSOLARIS
sulog
sulog(4) File Formats sulog(4)NAME
sulog - su command log file
SYNOPSIS
/var/adm/sulog
DESCRIPTION
The sulog file is a record of all attempts by users on the system to execute the su(1M) command. Each time su(1M) is executed, an entry
is added to the sulog file.
Each entry in the sulog file is a single line of the form:
SU date time
result port user-newuser
where
date The month and date su(1M) was executed. date is displayed in the form mm/dd where mm is the month number and dd is the day
number in the month.
time The time su(1M) was executed. time is displayed in the form HH/MM where HH is the hour number (24 hour system) and MM is the
minute number.
result The result of the su(1M) command. A ` + ' sign is displayed in this field if the su attempt was successful; otherwise a ` - '
sign is displayed.
port The name of the terminal device from which su(1M) was executed.
user The user id of the user executing the su(1M) command.
newuser The user id being switched to with su(1M).
EXAMPLES
Example 1 A sample sulog file.
Here is a sample sulog file:
SU 02/25 09:29 + console root-sys
SU 02/25 09:32 + pts/3 user1-root
SU 03/02 08:03 + pts/5 user1-root
SU 03/03 08:19 + pts/5 user1-root
SU 03/09 14:24 - pts/5 guest3-root
SU 03/09 14:24 - pts/5 guest3-root
SU 03/14 08:31 + pts/4 user1-root
FILES
/var/adm/sulog su log file
/etc/default/su contains the default location of sulog
SEE ALSO su(1M)SunOS 5.11 6 Jun 1994 sulog(4)