02-20-2008
Cannot redirect ouput?????
Hello experts,
I'm testing a program that prints error message to the screen.
I want to redirect the output to a file using >. but the message only prints on screen and not writing to the file,
Any suggestion on what I might try?
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
my perl script is calling another external java program. The Java in turn prints out a string. how can I capture the string.
------------------
#!/usr/bin/perl
print "Content-type:text/html\n\n";
use CGI;
$query = new CGI;
$theCookie = $query->cookie('someCookie');
$user =... (0 Replies)
Discussion started by: azmathshaikh
0 Replies
2. Shell Programming and Scripting
Hi all,
I have a list of data below.
As long as there are same character in the 1st column (eg xxx ), i would want to add all the numbers in the 3rd column and display as the output below so the total would be 10+20+30 = 60. Can anybody help to do this using nawk? Using solaris by the way. ... (12 Replies)
Discussion started by: Raynon
12 Replies
3. Windows & DOS: Issues & Discussions
I used printf to print the following under SFU,
lrs=`cat lrs`
hrs=`cat hrs`
tp=`cat tp`
printf “\n\n%5sM = $lrs Ohms%5sX = $hrs Ohms%5sT = $tp %%\n\n\n” > file
cat file
With the above script, I used %% after $tp only as a percentage sign and I get only the following output:
% T =... (5 Replies)
Discussion started by: ilak1008
5 Replies
4. Shell Programming and Scripting
Hi all ,
I have a view in teradata , the ouput of that view have to be stored as a file with delimitere as '|'.Is there any possibility of doing this in unix ?
Thanks in advance ,
Vinoth (6 Replies)
Discussion started by: vino.paal
6 Replies
5. Shell Programming and Scripting
I have this input file
Switch 0; Sun Sep 11 12:40:53 2011 EDT (GMT+4:00)
12:40:53.159984 SCN Port Offline;g=0x1e4b6 A2,P0 A2,P0 379 NA
12:40:53.159991 *Removing all nodes from port A2,P0 A2,P0 379 NA
18:45:31.326604 Port Elp engaged ... (1 Reply)
Discussion started by: greycells
1 Replies
6. Shell Programming and Scripting
Hi Guys,
I need to append some data to a new file, but i need to make sure that when i use to >> command again.I dont go to the new line. i append the data on the same line.
Please help regarding the same.
Thanks in advance..!!! (3 Replies)
Discussion started by: jaituteja
3 Replies
7. Shell Programming and Scripting
Hi All,
I have a output like below
$ cat aa.lst
Value of output parameters
---------------------------------------
Parameter Name : SNAPSHOTTIMESTAMP
Parameter Value : 2014-01-07-15.21.50.022423
Parameter Name : DATABASESIZE
Parameter Value : 96178176
... (2 Replies)
Discussion started by: kamauv234
2 Replies
8. Shell Programming and Scripting
Hi All,
Seeking for your assistance on how to ouput the file which is not match in file 1 and file 2 using awk. I tried NR=FNR but it's not working, it will only show the match record.
Ex.
File1
abc
def
ghi
File2
23a
gd
abc
Output:
abc (2 Replies)
Discussion started by: znesotomayor
2 Replies
9. UNIX for Beginners Questions & Answers
Hi All,
I am trying to print all the packages info in solaris 11 using below script.
#!/usr/bin/env bash
pkginfo -l | egrep '(BASEDIR|NAME|VERSION)' | awk '{print}' > /tmp/cp1
/usr/bin/nawk -F: '
{for (i=1; i<=NF; i++) {gsub (/^ *| *$/, "", $i)
... (5 Replies)
Discussion started by: sravani25
5 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)