Check it:
OR, for the long listing:
OR, for the current directory:
ORRR, for a long listing of the current directory:
If that isn't really want you wanted to accomplish, please be more specific. Based on your description of the problem, my neato "script" will solve the problem you described.
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)
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)
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)
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)
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)
hello every one ,
this is my first participation in the forum , I hope it'll be a good start
within a script I would like to put some code to read i\p from standard i\p using read command if it reads Y it will terminate the script if it reads N it will continue execution , if no i\p is... (2 Replies)
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)
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)
Hello gurus, this is part of my script:
ls -1 ${MyFile} >> ${dir_log}ListFile${Now}.tmp
FILENUM=`cat ${dir_log}ListFile${Now}.tmp| wc -l | awk '{print $1}'`>> /dev/null
if
then
writeError "ERRORE: no file in directory for type ${FileName}!" >> ${LogFileName}
Close 1
fi... (7 Replies)
I have a program that scans and updates its results to std out every second. I would like to capture its output for further processing, but there is a catch. I would like to capture a snapshot after about 15 seconds as the results become more accurate and close the program.
Obviously I can simply... (4 Replies)
Discussion started by: Riker1204
4 Replies
LEARN ABOUT OSX
moosex::getopt::basic
MooseX::Getopt::Basic(3) User Contributed Perl Documentation MooseX::Getopt::Basic(3)NAME
MooseX::Getopt::Basic - MooseX::Getopt::Basic - role to implement the Getopt::Long functionality
SYNOPSIS
## In your class
package My::App;
use Moose;
with 'MooseX::Getopt::Basic';
has 'out' => (is => 'rw', isa => 'Str', required => 1);
has 'in' => (is => 'rw', isa => 'Str', required => 1);
# ... rest of the class here
## in your script
#!/usr/bin/perl
use My::App;
my $app = My::App->new_with_options();
# ... rest of the script here
## on the command line
% perl my_app_script.pl --in file.input --out file.dump
DESCRIPTION
This is like MooseX::Getopt and can be used instead except that it doesn't make use of Getopt::Long::Descriptive (or "GLD" for short).
METHODS
new_with_options
See "new_with_options" in MooseX::Getopt.
process_argv
See "process_agv" in MooseX::Getopt.
AUTHORS
o Stevan Little <stevan@iinteractive.com>
o Brandon L. Black <blblack@gmail.com>
o Yuval Kogman <nothingmuch@woobling.org>
o Ryan D Johnson <ryan@innerfence.com>
o Drew Taylor <drew@drewtaylor.com>
o Tomas Doran <bobtfish@bobtfish.net>
o Florian Ragwitz <rafl@debian.org>
o Dagfinn Ilmari Mannsaaker <ilmari@ilmari.org>
o var Arnfjoer` Bjarmason <avar@cpan.org>
o Chris Prather <perigrin@cpan.org>
o Karen Etheridge <ether@cpan.org>
o Jonathan Swartz <swartz@pobox.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Infinity Interactive, Inc.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
perl v5.16.2 2012-08-30 MooseX::Getopt::Basic(3)