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
LEARN ABOUT SUSE
xfce4-session-logout
xfce4-session-logout(1) General Commands Manual xfce4-session-logout(1)
NAME
xfce4-session-logout - Logs out from Xfce
SYNOPSIS
xfce4-session-logout
DESCRIPTION
This manual page documents briefly the xfce4-session-logout command.
The xfce4-session-logout command allows you to programmatically logout from your Xfce session. It requests the session manager to display
the logout confirmation screen, or, if given one of the command-line options below, causes the session manager to take the requested action
immediately.
OPTIONS
xfce4-session-logout takes the following command line options:
--logout
Log out without displaying the logout dialog.
--halt Halt without displaing the logout dialog.
--reboot
Reboot without displaying the logout dialog.
--suspend
Suspend without displaying the logout dialog.
--hibernate
Hibernate without displaying the logout dialog.
--fast Do a fast shutdown. This instructs the session manager not to save the session, but instead to quit everything quickly.
--help Print a help screen and exit.
--version
Output version information and exit.
AUTHOR
xfce4-session-logout and this manual page were written by Brian Tarricone <kelnos@xfce.org> and Benedikt Meurer <benny@xfce.org> as part of
the Xfce project.
REPORTING BUGS
Report bugs to http://bugzilla.xfce.org/.
COPYRIGHT
Copyright (C) 2004 Benedikt Meurer.
Copyright (C) 2008 Brian Tarricone.
Oct 7, 2008 xfce4-session-logout(1)