03-12-2017
Thank you for the input, but this will still capture output from beginning to end of execution.
Is there a way to dynamically change a File Descriptor after 15 seconds, say std out to > /dev/null for first 15s then std out to > FILE && close program?
Last edited by Riker1204; 03-12-2017 at 01:45 AM..
Reason: clarity
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi
I want both standard output and standard error of my command cmd to go to the same file log.txt. please let me know the best commandline to do this.
Thanks (2 Replies)
Discussion started by: 0ktalmagik
2 Replies
2. Programming
Hello all
Im using CC: Sun C++ 5.6 2004/07/15 and using the -library=stlport4 when linkning im getting
The fallowing error :
Undefined first referenced
symbol in file
std::ostream &std::ostream::operator<<(std::ios_base&(*)(std::ios_base&))... (0 Replies)
Discussion started by: umen
0 Replies
3. Shell Programming and Scripting
i have a teat file having data like
one 12/3
two 23/09
three 12/12
now from another script i want to read one line at a time ,cut field one and two in two separate variable ,compare field1 with another variable
but outside the loop .If i found a match i want to take from user the value... (2 Replies)
Discussion started by: mobydick
2 Replies
4. Shell Programming and Scripting
Hi,
I use the following command
make all > output-`date +%F-%H-%M-%S`.txt 2>&1
to invoke a MAKE process that takes some weeks to complete. The ouput is redirected to a text file. Now I prefix the above command with time to get time needed for completion of the MAKE process
time make... (2 Replies)
Discussion started by: gkamendje
2 Replies
5. AIX
Hello Friends,
Can some one help me how to redirect output of a file to both a file and std output? All the help would be greatly appreciated.
Regards
Sridhar (1 Reply)
Discussion started by: send2sridhar
1 Replies
6. Cybersecurity
Some background on what I am trying to accomplish - Accreditation/Certification for DoD (Unix/Linux) system: I am trying to improve the process for capturing key system information in preparation for performing a formal security review of a Unix or Linux system. This is in addition to the SRR... (1 Reply)
Discussion started by: SecureMe
1 Replies
7. Shell Programming and Scripting
I am working on a script that lists files in a directory with a few file attributes depending on what option the user specifies at the command prompt. The script uses Getopt::Std and takes two switches.
The first switch allows the user to specify a directory, the second switch gives a long... (3 Replies)
Discussion started by: Breakology
3 Replies
8. Programming
Hi,
I'm having trouble compling the following code in Sun C++ (under sun studio 10). I found that it is issue with libCstd library. It can be resolved if i used stdport lib. However, i have no choice but to use libCstd. Does anyone know what can be done to resolve the issue? :confused:
... (0 Replies)
Discussion started by: shingpui
0 Replies
9. Shell Programming and Scripting
I'm Using this script to find the time of a file. I'm very much new to PERL
and found this script posted by some one on this forum.
It runs perfectly fine, just that it gives me following errors with the
accurate output as well. I jus want the output to be stored in another file
so that i can... (0 Replies)
Discussion started by: bankimmehta
0 Replies
10. Solaris
Hi guys, i have a new problem, even in scripting on KSH.
Given a string by standard INPUT (keyboard), i need to replace each character i print with this one '#' .
It's to camouflage password while digiting on command line.
For example:
----------------------------------
prompt$ ... (3 Replies)
Discussion started by: D4vid
3 Replies
LEARN ABOUT DEBIAN
vnccapture
VNCCAPTURE(1p) User Contributed Perl Documentation VNCCAPTURE(1p)
NAME
vnccapture - Capture a screenshot via VNC
SYNOPSIS
vnccapture [options] [numcaptures]
Options:
-P --password=str password for the VNC server, if applicable
-H --host=str address of VNC server (default: 'localhost')
-p --port=num TCP port for VNC server (default: 5900)
-d --depth=8|16|24 screen depth for capture (default: 24)
-t --type=ext image type for output (default: 'png')
-C --cursor include the mouse cursor in the image
-o --outfile capture to the specified path
otherwise capture to "snapshot<num>.<type>"
-v --verbose print status and diagnostics to STDOUT
-h --help verbose help message
-V --version print the Net::VNC version
DESCRIPTION
Connect to a VNC server and capture the screen one or more times. The output is written to, for example, "snapshot0001.png". The number
is the sequence of captures and the extension is specified by the "--type" argument.
The "--type" argument can be any format that Image::Imlib2 can support.
SEE ALSO
Net::VNC
Image::Imlib2
AUTHOR
Chris Dolan, cdolan@cpan.org
perl v5.12.4 2011-10-31 VNCCAPTURE(1p)