Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Output redirecting!!
Name: drc--ro-w Date: April 8, 2004 at 10:21:12 Pacific OS: Windows XP (Home) CPU/Ram: Intel Mobile Pentium IV 1
Comment:
How do a redirect and output of a command to a variable: For example: wc -l < text
how do i store the output in, let's say variable 'count'
Summary: Hi Jim, I have tried to submit your command and it doesn't work. The result are following: Case 1: finpdb# ufsdump 0ucf /dev/rmt/0 /johnny >> backup_log.txt 2 > &1 Ambiguous output redirect Case 2: f...
Summary: If you don't want to see the stderr output, redirect the stderr handle to a file or the null device: find . -name "jni.h" -print 2> /tmp/myerror.txt or: find . -name "jni.h" -print 2> /dev/null ...
Summary: I would use exec (as below) to redirect all stdout and stderr to a log file. That single command eliminates redirecting on many individual commands, and it redirects ALL stdout and stderr, even the u...