08-03-2009
Logging Command Line and Output in Unix
Hi,
This might be a bit stupid question, but what command to use to create like a session which logs the command line, and output on to the screen?
Basically, a log to a file, where I can review what I had install, uninstall, etc.
Thank you
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi;
as a pseudo;
while read psLine
do
myFunc $psLine
done < ps
i don't want to redirect ps command's to a file. in fact, my problem is "how can i
read stdout line by line in bash, sed, awk or any?"
thanks, (5 Replies)
Discussion started by: s. murat
5 Replies
2. Shell Programming and Scripting
Hi all
I'm creating a script that runs a few commands on some boxes and everything can be logged EXCEPT the java -version command, there doesn't seem to be any output...
Can anyone help explain why this does not work? Do I need to do something extra to append the output from the java... (3 Replies)
Discussion started by: Keepcase
3 Replies
3. Shell Programming and Scripting
I have been trying this a lot of different ways and haven't found too much online. Here's what I've got so far:
j=0
declare -a first
zero=(`cat $tmpfile`)
for i in "${zero}"
do
command $i >> "${first}"
... (4 Replies)
Discussion started by: Azrael
4 Replies
4. Shell Programming and Scripting
can we get o/p of ls | wc - l command on the same line.
# ls nc*010412* | wc -l
23
# ls nc*010412* | wc -l
24
# ls nc*050412* | wc -l
21
# ls nc*040412* | wc -l
23
# ls nc*070412* | wc -l
22
my expectation is grepping specific lines from the file and... (8 Replies)
Discussion started by: sagar_1986
8 Replies
5. UNIX for Advanced & Expert Users
Hi all,
I have F5 load balancer on my system and checking service status by opening an ftp session in every 30 seconds. These ftp sessions are being logged in /var/adm/wtmpx and filling up the file. when i run the last command most of the output is this ftp session. I was wondering if there is a... (1 Reply)
Discussion started by: cepxat
1 Replies
6. Shell Programming and Scripting
Sed command to replace a line in a file using line number from the output of a pipe.
Is it possible to replace a whole line piped from someother command into a file at paritcular line...
here is some basic execution flow..
the line number is 412
lineNo=412
Now i have a line... (1 Reply)
Discussion started by: vivek d r
1 Replies
7. OS X (Apple)
So far nobody on ASC, nor anywhere was able to respond to my issue and Google wasn't much of help either.
I started to experience the issue some time ago: my OS is Lion 10.7.5. It occurs in all apps that have the function of versioning (iWork which I have updated up to v9.2, namely, Pages 4.2,... (0 Replies)
Discussion started by: scrutinizerix
0 Replies
8. Shell Programming and Scripting
Hello :)
new to bash not to programming.
I have an on-going need to change the owning group on sets of files and directories from the one they were created with or changed to on update to the one they need to have going forward.
find {target_root} -group wrong_group
gets me a newline... (4 Replies)
Discussion started by: naftali
4 Replies
9. Shell Programming and Scripting
Hi,
I have some 2000 names in a table like below.
Java
Oracle/SQL
ANSI SQL
SQL,DWH,DB
DB&Java
And by using for loop in my code i am able to get a single word but if there is any special character or space then it is considering as a next line.
I have to execute the below queries in... (10 Replies)
Discussion started by: Samah
10 Replies
pppoesd(1M) pppoesd(1M)
NAME
pppoesd - PPPoE (Point-to-Point Protocol over Ethernet) server daemon
SYNOPSIS
config-file] debug-level] log-file]
DESCRIPTION
performs the server side discovery phase functionalities of PPPoE as mentioned in RFC 2516. The daemon responds to PADI and PADR packets
from clients if it can offer services desired by the client. generates a unique session-id for every client that it services. It then
forks a daemon which performs the session phase functionalities of PPPoE as mentioned in RFC 2516.
Options
supports the following command-line options:
Specifies the configuration file with absolute path
to be used by The default configuration file is
Specifies the debug level at which logging has to be
enabled. The three debug levels are:
Logs all error messages.
To log these messages, type on the command line.
Logs all warning messages.
To log these messages, type on the command line.
Logs function level debug messages.
To log these messages, type on the command line.
Specifies the log-file with absolute path to which
logs messages. The default log file is
EXAMPLES
An example usage of is as follows:
WARNINGS
Note that, you cannot run without the file. See pppoesd.conf(4) for more information.
AUTHOR
was developed by Hewlett-Packard.
FILES
PPPoE client
PPPoE relay
PPPoE server configuration file
PPP daemon
SEE ALSO
pppd(1), pppoec(1), pppoerd(1M), pppoesd.conf(4).
pppoesd(1M)