04-14-2010
Yaa Vgersh is right...
If you are unable to redirect the output with ">" or ">>" then I am a bit sure that the output you are getting is not the stdout.It should be stderror and you can trap it by using "2>" or "2>>" insted of ">" or ">>".
So, use this instad..
10 More Discussions You Might Find Interesting
1. Solaris
I have a window open on my ultra 10 - a terminal window connecting to a server.
Is there any way I can log all output to this window to a log file on my ultra 10 ? (2 Replies)
Discussion started by: frustrated1
2 Replies
2. Shell Programming and Scripting
Hi all,
I am displaying my result in HTML format using tables.
I want to save the results in file in the same format along with the table only.
How do i do that in perl?
I have attached the table structure .
I want to save like that itself .
with regards (2 Replies)
Discussion started by: vanitham
2 Replies
3. Shell Programming and Scripting
hello hackers.
i have a curl process running as cgi directly pushing stdout to the client. but i want to additionally save that stream to a file at the same time.
any directions madly welcome.
thanks in advance (3 Replies)
Discussion started by: scarfake
3 Replies
4. Shell Programming and Scripting
hi there !
i have exactly the same problem like this guy here
https://www.unix.com/shell-programming-scripting/127668-getting-curl-output-verbose-file.html
i am not able to save the curl verbose output..
the sollution in this thread (redirecting stderr to a file) does not work for me.... (0 Replies)
Discussion started by: crabmeat
0 Replies
5. Shell Programming and Scripting
Hi,
I'am using "time" to check execution time of some script. Is there any possibility to save time command result into a file ? (2 Replies)
Discussion started by: Physix
2 Replies
6. Shell Programming and Scripting
Hi,
If I type:
ls -l *txt | awk '{print $8}'
I get the file listing if I am in the directory.
If I try to do the same from a job flow, doing also other things, I can't do
ls -l directory/*txt | awk '{print $8}' > directory/result.txt
or
echo ls -l directory/*txt | awk '{print... (8 Replies)
Discussion started by: essemario
8 Replies
7. Shell Programming and Scripting
Currently I have a perl code to combine two different files.
#! /usr/bin/perl -w
use strict;
open FP1,"A.txt";
open FP2,"B.txt";
my ($l1,$l2);
while(1)
{
$l1=<FP1>; chomp $l1;
$l2=<FP2>; chomp $l2;
last unless(defined $l1 or defined $l2);
print "$l1 $l2\n";
}
close FP2;... (4 Replies)
Discussion started by: Tzeronone
4 Replies
8. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Hi there.
i have created a program that in the end it will give output like this
1 2 3 4 5
10 9 ... (1 Reply)
Discussion started by: shdin271
1 Replies
9. UNIX for Dummies Questions & Answers
I have friends that this command worked perfectly, but I would like to save the result in a variable, which I have not achieved
var=prueba.txt
echo $var | cut -d "." -f 1
prueba
I need to do this but does not work me
salida=echo $var | cut -d "." -f 1
echo "result:$salida"
... (8 Replies)
Discussion started by: tricampeon81
8 Replies
10. Shell Programming and Scripting
I am trying to modify the "corestat v1.1" code which is in Perl.The typical output of this code is below:
Core Utilization
CoreId %Usr %Sys %Total
------ ----- ----- ------
5 4.91 0.01 4.92
6 0.06 ... (0 Replies)
Discussion started by: Zam_1234
0 Replies
LEARN ABOUT DEBIAN
zziplib-bin
ZZIPLIB-BIN(1) General Commands Manual ZZIPLIB-BIN(1)
NAME
zzcat, zzdir, zzxorcat, zzxordir zzxorcopy - small tools using zziplib
SYNOPSIS
zzcat FILE [...] zzdir DIR [...] zzxorcat [-HEX] FILE [...] zzxordir [-HEX] DIR [...] zzxorcopy [-HEX] FILE OUTFILE
DESCRIPTION
zzcat prints the given files to stdout, so you may want to redirect the output. The FILE can be a normal file or an inflated part of a zip
archive (see OPTIONS).
zzdir prints the content table to stdout of the given DIR or zipfile.
zzxorcat prints the given files to stdout, so you may want to redirect the output. The FILE is an inflated part of a zip archive
obfusctated with a xor value optionally given by the HEX option.
zzxordir prints the content table to stdout of the given DIR or zipfile. The DIR can br an inflated part of a zip archive obfusctated with
a xor value optionally given by the HEX option.
zzxorcopy copies data from FILE to OUTFILE adding simple obfuscation by xor-ing each byte with the HEX value given. Remember that copying
data twice with the same xor-value will result in the original file data.
OPTIONS
zziplib-bin tools accept the following options:
FILE Input filename for reading or part (if supported by tool). Part is written as zipname/filename, e.g.: for accessing README inside
of data.zip you'll specify data/README.
DIR Disk directory, zipfile or inflated part of a zipfile.
-HEX Hex number for xor-ing the zipfile contents. If not supplied all tools that use it take 0x55 as default value for xor-ing. OUTFILE
Output file name for zzxorcopy.
AUTHORS
zziplib was written by Guido Draheim <guidod@gmx.de>.
This manual page was written by Ricardo Mones <mones@aic.uniovi.es>, for the Debian GNU/Linux system (but may be used by others).
June 25, 2004 ZZIPLIB-BIN(1)