10 More Discussions You Might Find Interesting
1. 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:
CoreId %Usr %Sys %Total
------ ----- ----- ------
5 4.91 0.01 4.92
6 0.06 ... (0 Replies)
Discussion started by: Zam_1234
i want to save the output of my c ++ code to a text file which is in a particular path :
this is part of my code and I dunno where I am doing it wrong
for( int i = 0; i < l; ++i )
std::cout << 1 + k * i + index << ' ';
... (2 Replies)
Discussion started by: siya@
How to record output of below command in a text file.
or is there any other command which will do the same thing in AIX.
I would like to get a report something similar to below commands.
prstat -c (5 Replies)
Discussion started by: NarayanaPrakash
4. UNIX for Advanced & Expert Users
I want to know how to redirect the output of topas -P to a file in a readable format. I tried doing it by using
topas -P > topas.txt but the output is not properly aligned and when I opened it using vi it ahd some characters.
Please help me out in this.
Thanks (1 Reply)
Discussion started by: Preetha
5. Shell Programming and Scripting
I make shell script by use "if" statement, what should add it to
shell script save which I enter it in output file txt?
---------- Post updated at 08:27 AM ---------- Previous update was at 05:59 AM ----------
echo "enter your name"
# now i when start... (1 Reply)
Discussion started by: Oman_Member
6. Shell Programming and Scripting
I have a 3rd party tool on Solaris 8. I am running it thorugh my script but I am not able to capture its output into a variable.
Like, I tried, but did not work.
Also, I tried saving in a file but when I run, output is always shown on the... (19 Replies)
Discussion started by: angshuman_ag
7. Shell Programming and Scripting
hi there !
i have exactly the same problem like this guy here
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
I need to output to a file, what will be ftp'ed to windows the output of a topas -P command in AIX. I can't install anything in the server (because it's the bank AIX server) but i need to control and keep the history of the % cpu that my processes use.
I tried to use topas -R >>... (7 Replies)
Discussion started by: jtmartins
9. UNIX for Dummies Questions & Answers
Please advise which command/command line shall I run;
1) to display the command and its output on console
2) simultaneous to save the command and its output on a file
I tried tee command as follows;
$ ps aux | grep mysql | tee /path/to/output.txt
It displayed the... (7 Replies)
Discussion started by: satimis
How do i redirect output of topas to a file.
i did not find any such option in topas command.
Ashok (2 Replies)
Discussion started by: ashokd001
IPTABLES-SAVE(8) iptables 1.6.1 IPTABLES-SAVE(8)
iptables-save -- dump iptables rules to stdout
ip6tables-save -- dump iptables rules to stdout
iptables-save [-M modprobe] [-c] [-t table]
ip6tables-save [-M modprobe] [-c] [-t table]
iptables-save and ip6tables-save are used to dump the contents of IP or IPv6 Table in easily parseable format to STDOUT. Use I/O-redirect-
ion provided by your shell to write to a file.
-M, --modprobe modprobe_program
Specify the path to the modprobe program. By default, iptables-save will inspect /proc/sys/kernel/modprobe to determine the exe-
include the current values of all packet and byte counters in the output
-t, --table tablename
restrict output to only one table. If not specified, output includes all available tables.
None known as of iptables-1.2.1 release
Harald Welte <email@example.com>
Rusty Russell <firstname.lastname@example.org>
Andras Kis-Szabo <email@example.com> contributed ip6tables-save.
The iptables-HOWTO, which details more iptables usage, the NAT-HOWTO, which details NAT, and the netfilter-hacking-HOWTO which details the
iptables 1.6.1 IPTABLES-SAVE(8)