Sponsored Content
Full Discussion: STDout
Top Forums UNIX for Dummies Questions & Answers STDout Post 302619823 by jim mcnamara on Friday 6th of April 2012 08:14:58 AM
Old 04-06-2012
Code:
myscript.sh inputfilename > /path/to/outfilefilename

 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

logging stdout

Hello I run a program that creates number of processes. Is there a way of viewing their standard output on terminal and logging it to a log file simultaneously? (3 Replies)
Discussion started by: masha
3 Replies

2. Programming

stdout to a variable?

Hi, I need to set stdout to go to a String variable, has anyone got any ideas? (6 Replies)
Discussion started by: cb.mark
6 Replies

3. Solaris

stdout redirected?

Hi all, I have a c++ program which is running fine but has some printfs which its spews on to the screen, which I need for debugging. But, I execute this program through a java, i.e I run a java program which actually launches my c++ executable and when it does this, I see none of my printfs... (1 Reply)
Discussion started by: Naanu
1 Replies

4. Shell Programming and Scripting

Executing Stdout ???

Hiya all, Simple question - yet no simple answer im afraid ! Is there a way to execute a shell script (child) which returns one line and get the current (parent) shell to execute the stdout from the child ??? example child.sh #!/bin/sh echo "setenv DISPLAY xxx:03" parent_prompt>... (5 Replies)
Discussion started by: fawqati
5 Replies

5. UNIX for Dummies Questions & Answers

not able to capture STDOUT

I am using a third party API to get some real time feed. When I run the command it shows the results properly: etd@mhs-apps5009 $ mamalistenc -m lbm -tport mamaqa -S MLALERTS -s KANA wFinancialStatus Type CTRL-C to exit. (null).MLALERTS.KANA Type: INITIAL Status OK wFinancialStatus |... (5 Replies)
Discussion started by: aks__
5 Replies

6. UNIX for Advanced & Expert Users

How to use gzip on stdout

Does anyone know how I can use gzip to zip a large log file on the fly. My simulation is currently logging a large file that I need for analysis at a later point. However the files are so huge that I may even run out of disk space. The content is mainly text so when compressed the files are... (2 Replies)
Discussion started by: mitch1710
2 Replies

7. UNIX for Dummies Questions & Answers

csplit to stdout

I want to split big files based on a pattern to stdout. Although csplit works well for me splitting the output into separate files (e.g. xx00, xx01, xx02, ...), the following is not working as expected: <code> # assuming pattern occurs less than 100 times csplit bigfile '%pattern%'... (2 Replies)
Discussion started by: uiop44
2 Replies

8. Shell Programming and Scripting

stderr/stdout

Can somebody explain to me why the diff output is not going to stderr? Yet when I issue a diff from the command line the return code is -ne 1. I am guessing diff always writes to stdout??? Is there away I can force the difff to write to stderr USING THE CURRENT template. If possible, I... (5 Replies)
Discussion started by: BeefStu
5 Replies

9. UNIX for Dummies Questions & Answers

STDIN and STDOUT

Hallo, i have a script like: if ;then echo "OK" else echo "ERROR $2 is missing" fi; if ;then touch $2 fi; if ;then cat $1 | grep xy > $2 (1 Reply)
Discussion started by: eightball
1 Replies

10. Cybersecurity

How do I wipe stdout?

Today I used Terminal (invoked from Mac OS X 10.4.11) to view some data that is secured by a password. After exiting Terminal, it occurred to me that a vestige of the data displayed on my screen might reside in memory or in disk file ... the actual file used for stdout, for example. Do I need... (1 Reply)
Discussion started by: dcollins
1 Replies
XNLOCK(1)						      General Commands Manual							 XNLOCK(1)

NAME
xnlock - amusing lock screen program with message for passers-by SYNOPSIS
xnlock [ options ] [ message ] DESCRIPTION
xnlock is a program that acts as a screen saver for workstations running X11. It also "locks" the screen such that the workstation can be left unattended without worry that someone else will walk up to it and mess everything up. When xnlock is running, a little man with a big nose and a hat runs around spewing out messages to the screen. By default, the messages are "humorous", but that depends on your sense of humor. If a key or mouse button is pressed, a prompt is printed requesting the user's password. If a RETURN is not typed within 30 seconds, the little man resumes running around. Text on the command line is used as the message. For example: % xnlock I'm out to lunch for a couple of hours. Note the need to quote shell metacharacters. In the absence of flags or text, xnlock displays random fortunes. OPTIONS
Command line options override all resource specifications. All arguments that are not associated with a command line option is taken to be message text that the little man will "say" every once in a while. The resource xnlock.text may be set to a string. -fn fontname The default font is the first 18 point font in the new century schoolbook family. While larger fonts are recokmmended over smaller ones, any font in the server's font list will work. The resource to use for this option is xnlock.font. -filename filename Take the message to be displayed from the file filename. If filename is not specified, $HOME/.msgfile is used. If the contents of the file are changed during runtime, the most recent text of the file is used (allowing the displayed message to be altered remotely). Carriage returns within the text are allowed, but tabs or other control characters are not translated and should not be used. The resource available for this option is xnlock.file. -ar Accept root's password to unlock screen. This option is true by default. The reason for this is so that someone's screen may be unlocked by autorized users in case of emergency and the person running the program is still out to lunch. The resource available for specifying this option is xnlock.acceptRootPasswd. -noar Don't accept root's password. This option is for paranoids who fear their peers might breakin using root's password and remove their files anyway. Specifying this option on the command line overrides the xnlock.acceptRootPasswd if set to True. -ip Ignore password prompt. The resource available for this option is xnlock.ignorePasswd. -noip Don't ignore password prompt. This is available in order to override the resource ignorePasswd if set to True. -fg color Specifies the foreground color. The resource available for this is xnlock.foreground. -bg color Specifies the background color. The resource available for this is xnlock.background. -rv Reverse the foreground and background colors. The resource for this is xvnlock.reverseVideo. -norv Don't use reverse video. This is available to override the reverseVideo resource if set to True. -prog program Receive message text from the running program program. If there are arguments to program, encase them with the name of the program in quotes (e.g. xnlock -t "fortune -o"). The resource for this is xnlock.program. RESOURCES
xnlock.font: fontname xnlock.foreground: color xnlock.background: color xnlock.reverseVideo: True/False xnlock.text: Some random text string xnlock.program: program [args] xnlock.ignorePasswd: True/False xnlock.acceptRootPasswd: True/False FILES
xnlock executable file ~/.msgfile default message file AUTHOR
Dan Heller <argv@sun.com> Copyright (c) 1985, 1990. The original version of this program was written using pixrects on a Sun 2 running SunOS 1.1. 19 April 1990 XNLOCK(1)
All times are GMT -4. The time now is 08:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy