Output all commands to logfiles ???


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Output all commands to logfiles ???
Prev   Next
# 1  
Old 06-20-2006
Output all commands to logfiles ???

Dear Forum,

My .cshrc settings are embedded in a massive jungle of code distributed all over the place, where finding anything is a "needle in a haystack" daily pain in the royal backside.

Is there anyway, i can dump out every command and file executed to STDOUT after sourcing my .cshrc ???

This would genuinely improve my quality of life !

Thanks,

FMA
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Arranging output for 2 commands

I am trying to run 2 sets of commands but want their output in a particular format. The 2 commands are : md5sum $WAR_DIR/$war and java -jar $WAR_DIR/$war | grep build.release.version | awk '{print $3}' The first command gives an output of 5f5261a33b92a36f80218cf14e8271ad ... (4 Replies)
Discussion started by: Junaid Subhani
4 Replies

2. Shell Programming and Scripting

Compare output from two commands

Hello folks, I would like ask for a help in one script I'm currently working on. Main goal is to compare size of file available on remote site and file already downloaded (check if downloaded file is complete and non corrupted). # Check if files were downloaded correctly for FILES in... (6 Replies)
Discussion started by: brusell
6 Replies

3. UNIX for Dummies Questions & Answers

help in redirecting output to multiple logfiles without displaying it on the screen

Hi, 1.some_command > logfile1 2>&1 will redirect everything to the file logfile1 without displaying the output of the command on the screen. 2.some_command | tee logfile1 | tee logfile2will redirect the output to logfile1 and logfile2, as well as display the output of the command on the... (1 Reply)
Discussion started by: akhila
1 Replies

4. Shell Programming and Scripting

Logfiles

Hi All, I have a peculiar problem. I will call a script from another script. Script abc.ksh is called by ABC.ksh as ABC.ksh abc.ksh in abc.ksh I will create and redirect all the statements to log file. ABC.ksh will also has a log file. I want all the logs generated in file abc in ABC... (5 Replies)
Discussion started by: javeed7
5 Replies

5. Shell Programming and Scripting

split monthly logfiles into daily logfiles

Hi, I have a lot of logfiles like fooYYYYMM.log (foo200301.log, foo200810.log) with lines like YYYY-MM-DD TIMESTAMP,text1,text2,text3... but I need (for postprocessing) the form fooYYYYMMDD.log (so foo200402.log becomes foo20040201.log, foo20040202.log...) with unmodified content of lines. ... (1 Reply)
Discussion started by: clzupp
1 Replies

6. Solaris

Logging commands and output

I'm looking for a CLI utility that will capture all the commands you type at the Solaris CLI (and their output) into a file. I'm sure it's called "scripter", but I can't find anything on a command called scripter. Does anyone know of a such a command? Your help will be greatly... (3 Replies)
Discussion started by: soliberus
3 Replies

7. Shell Programming and Scripting

Combine Two Commands Output

How i can combine output of two commands in one file.......i tried this but it is not working although each command is working good seperately..... head -1 filename | tail -1 filename i think there is problem with command concatenator? (16 Replies)
Discussion started by: 33junaid
16 Replies

8. UNIX for Dummies Questions & Answers

Output of 2 commands into 1 file

How could you put the output of two commands into one file using a single command? For example put the output of a grep command and a sort command into one file together. Here is another rough explanation of what I am trying to do; output of $ grep pattern file1 plus output of $ sort file... (8 Replies)
Discussion started by: enuenu
8 Replies

9. UNIX for Dummies Questions & Answers

Controlling logfiles

I support an app that outputs alert and audit messages to one log file (vendor says they can't be separated). The script that I have written takes a copy (mv cmd) of the file to do the separation and reformatting. I have a problem that I loose records (messages are being written constantly, upto 3+... (5 Replies)
Discussion started by: nhatch
5 Replies

10. UNIX for Dummies Questions & Answers

Logfiles

My server has only has access logs turned on. How do I turn on the other standard logs (i.e. I'd like to see the referring urls). Thanks in advance. (3 Replies)
Discussion started by: pingdom
3 Replies
Login or Register to Ask a Question
ICONV_STRRPOS(3)							 1							  ICONV_STRRPOS(3)

iconv_strrpos - Finds the last occurrence of a needle within a haystack

SYNOPSIS
int iconv_strrpos (string $haystack, string $needle, [string $charset = ini_get("iconv.internal_encoding")]) DESCRIPTION
Finds the last occurrence of a $needle within a $haystack. In contrast to strrpos(3), the return value of iconv_strrpos(3) is the number of characters that appear before the needle, rather than the offset in bytes to the position where the needle has been found. The characters are counted on the basis of the specified character set $charset. PARAMETERS
o $haystack - The entire string. o $needle - The searched substring. o $charset - If $charset parameter is omitted, $string are assumed to be encoded in iconv.internal_encoding. If $haystack or $needle is not a string, it is converted to a string and applied as the ordinal value of a character. RETURN VALUES
Returns the numeric position of the last occurrence of $needle in $haystack. If $needle is not found, iconv_strrpos(3) will return FALSE. Warning This function may return Boolean FALSE, but may also return a non-Boolean value which evaluates to FALSE. Please read the section on Booleans for more information. Use the === operator for testing the return value of this function. SEE ALSO
strrpos(3), iconv_strpos(3), mb_strrpos(3). PHP Documentation Group ICONV_STRRPOS(3)