Sponsored Content
Top Forums Shell Programming and Scripting Logging ALL standard out of a bash script to a log file, but still show on screen Post 302357390 by ckmehta on Tuesday 29th of September 2009 03:53:02 PM
Old 09-29-2009
I have seen some solutions with hacks internally around the "tail -f" method, but it gets messy fast. Any other ideas?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

tail command not show on screen

Hi, I'm moniroting duplicate text with unix command (tail -f trace75747 | grep 'duplicate'), but it showed many lines then it stop show trace information although trace information in this file trace75747 always got. What should I do? I look forward to hearing from you. THANKS! (10 Replies)
Discussion started by: seyha_moth
10 Replies

2. Shell Programming and Scripting

Bash script [Press Tab] Screen Blank..

Dear Member, OLD Question --> disable-completion not solved My bash Menu script ping process problem. If ping still running and users press SCREEN is Blank... Cant Members help me.. kill signal or others scripting for my case, btw i use Linux.. Thanks, Rico My Bash Script : ... (1 Reply)
Discussion started by: carnegiex
1 Replies

3. Shell Programming and Scripting

how to run non-standard commands in bash script?

Hello All. I suspect that this will be a clear noob question, but I haven't been able to figure it out using the usual methods, so I turn to you. I've written a script to create input files for the quantum chemistry program NWCHEM. Generally you create an input file and then execute it by... (12 Replies)
Discussion started by: EinsteinMcfly
12 Replies

4. UNIX for Dummies Questions & Answers

Reading from Screen/Standard Output

Is it possible to read from the screen or standard output? If so, may I know how I can do this? For example, I have an application running which prints out the following on the screen: Starting tools from .image-tools... imagecontrol_1: SECS/GEM-capable version is running done cindy@pgunix... (2 Replies)
Discussion started by: sippingsoda
2 Replies

5. Shell Programming and Scripting

Run a bash script, display on the screen and save all information in a file including error info

Hi all, How to: Run a bash script, display on the screen and save all information in a file including error information. For example: I have a bash script called test.sh now I want to run the test.sh and display the output on the screen and save the output including error info to a file. ... (1 Reply)
Discussion started by: Damon sine
1 Replies

6. Shell Programming and Scripting

Bash script show Kill system output

Hi we are calling kill -9 $pid command from bash script it gives below output, but we need to hide the output. i tried /dev/null but ni luck. is there any alternate way to schive this. ../kill_scr.sh: line 42: 1891 Killed /tmp/anr_rest_mul_wc.sh Soalris 10. ... (2 Replies)
Discussion started by: sachinbutala
2 Replies

7. Shell Programming and Scripting

running a bash script even after logging out from the current session

HI , I have a simple script that moves files from one folder to another folder, I have already done the open-ssh server settings and the script is working fine and is able to transfer the files from one folder to another but right now I myself execute this script by using my creditianls to... (4 Replies)
Discussion started by: nks342
4 Replies

8. UNIX for Dummies Questions & Answers

apache logging - show more information

is it possible to make apache log each user activity in its log file "access_log" i have a web application here that uses apache. in the apache log files, i see that it shows when requests are made to certain pages in my web application. but it doesn't show the user name of the person making... (1 Reply)
Discussion started by: SkySmart
1 Replies

9. Shell Programming and Scripting

How to show a list of currently logged in and logging out users?

Hi Guys! I am sure that this question might appeared previously, but I still don't know how to show a list of logged out users. Please help with this! Thanks in advance:) (5 Replies)
Discussion started by: saloliubliu
5 Replies

10. Shell Programming and Scripting

BASH logging to file, limit lines

BASH Gurus: Anyone know how to append continuous output command appending to a file, but limit that file to no more than 20 lines? The program I have running is simply monitoring my UDP port 53 for incoming packets endlessly. I just need to keep this file from going over 20 lines. Once the file... (3 Replies)
Discussion started by: scorpius2k1
3 Replies
textutil::string(n)				    Text and string utilities, macro processing 			       textutil::string(n)

__________________________________________________________________________________________________________________________________________________

NAME
textutil::string - Procedures to manipulate texts and strings. SYNOPSIS
package require Tcl 8.2 package require textutil::string ?0.7? ::textutil::string::chop string ::textutil::string::tail string ::textutil::string::cap string ::textutil::string::uncap string ::textutil::string::longestCommonPrefixList list ::textutil::string::longestCommonPrefix ?string...? _________________________________________________________________ DESCRIPTION
The package textutil::string provides miscellaneous string manipulation commands. The complete set of procedures is described below. ::textutil::string::chop string A convenience command. Removes the last character of string and returns the shortened string. ::textutil::string::tail string A convenience command. Removes the first character of string and returns the shortened string. ::textutil::string::cap string Capitalizes the first character of string and returns the modified string. ::textutil::string::uncap string The complementary operation to ::textutil::string::cap. Forces the first character of string to lower case and returns the modified string. ::textutil::string::longestCommonPrefixList list ::textutil::string::longestCommonPrefix ?string...? Computes the longest common prefix for either the strings given to the command, or the strings specified in the single list, and returns it as the result of the command. If no strings were specified the result is the empty string. If only one string was specified, the string itself is returned, as it is its own longest common prefix. BUGS, IDEAS, FEEDBACK This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category textutil of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for either package and/or documentation. SEE ALSO
regexp(n), split(n), string(n) KEYWORDS
capitalize, chop, common prefix, formatting, prefix, string, uncapitalize textutil 0.7 textutil::string(n)
All times are GMT -4. The time now is 08:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy