Sponsored Content
Full Discussion: Save output in text C++
Top Forums Programming Save output in text C++ Post 302850203 by bigearsbilly on Wednesday 4th of September 2013 06:26:43 AM
Old 09-04-2013
yeah you should use one or the other, iostream or stdio and not mix and match, ideally.
 

10 More Discussions You Might Find Interesting

1. Solaris

terminal output - save to file?

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. UNIX for Dummies Questions & Answers

Save TCL Procedure Output

Hello Friend, In TCL i wrote a procedure as power, accepting two arguments and it was saved as a file named TCLProc.tcl. Now from unix, using shell script i want to run this procedure power,the output of this procedure should be saved in a text file.How can i do this.Please help me as early... (1 Reply)
Discussion started by: gjsaravanan
1 Replies

3. AIX

topas -P save output

hi i have server monitor script which totally depends upon the output of TOP which works fine on HP. now i am told to put same script on aix i found that topas -P produces same output but it doesnt redirect output to file i have to kill/terminate it. is there any other way to this. as the... (0 Replies)
Discussion started by: zedex
0 Replies

4. UNIX for Dummies Questions & Answers

Command display output on console and simultaneously save the command and its output

Hi folks, 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
7 Replies

5. Shell Programming and Scripting

Save cURL verbose output to file or do it like browser "save as.."

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

6. Shell Programming and Scripting

Save output in a variable

Hi, 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. output=`/usr/bin/myTool` echo $output Also, I tried saving in a file but when I run, output is always shown on the... (19 Replies)
Discussion started by: angshuman_ag
19 Replies

7. Shell Programming and Scripting

how can save output?

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 ---------- I mean like this echo "enter your name" read name # now i when start... (1 Reply)
Discussion started by: Oman_Member
1 Replies

8. Shell Programming and Scripting

How to save the 'nmon' output to a text file with a script?

Hi all, I want to do an Unix Script to save the 'nmon' output on a text file and I don't know how to do it. I need a Script for each monitoring and also one to multiple monitorings. Thanks (6 Replies)
Discussion started by: Javi1990
6 Replies

9. Shell Programming and Scripting

Save value from output of Corestat and save in a list for each core

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

10. Shell Programming and Scripting

Run sql query in shell script and output data save as delimited text

I want to run sql query in shell script and output data save as delimited text (delimited text would be comma) Code: SPOOL_FILE=/pgedw/dan.txt SQL=/pgedw/dan.sql sqlplus -s username/password@myhost:port/servicename <<EOF set head on set COLSEP , set linesize 32767 SET TRIMSPOOL ON SET... (8 Replies)
Discussion started by: Jaganjag
8 Replies
PACEMAKER(8)						  System Administration Utilities					      PACEMAKER(8)

NAME
Pacemaker - Part of the Pacemaker cluster resource manager SYNOPSIS
crm_simulate datasource operation [additional options] DESCRIPTION
crm_simulate - Tool for simulating the cluster's response to events OPTIONS
-?, --help This text -$, --version Version information -Q, --quiet Display only essentialoutput -V, --verbose Increase debug output Operations: -R, --run Determine the cluster's response to the given configuration and status -S, --simulate Simulate the transition's execution and display the resulting cluster status -X, --in-place Simulate the transition's execution and store the result back to the input file -s, --show-scores Show allocation scores -U, --show-utilization Show utilization information -P, --profile=value Run all tests in the named directory to create profiling data Synthetic Cluster Events: -u, --node-up=value Bring a node online -d, --node-down=value Take a node offline -f, --node-fail=value Mark a node as failed -i, --op-inject=value Generate a failure for the cluster to react to in the simulation Value is of the form ${resource}_${task}_${interval}@${node}=${rc}. Eg. memcached_monitor_20000@bart.example.com=7 For more infor- mation on OCF return codes, refer to: http://www.clusterlabs.org/doc/en-US/Pacemaker/1.1/html/Pace- maker_Explained/s-ocf-return-codes.html -F, --op-fail=value If the specified task occurs during the simulation, have it fail with return code ${rc} Value is of the form ${resource}_${task}_${interval}@${node}=${rc}. Eg. memcached_stop_0@bart.example.com=1 The transition will normally stop at the failed action. Save the result with --save-output and re-run with --xml-file -t, --set-datetime=value Set date/time -q, --quorum=value Specify a value for quorum -g, --ticket-grant=value Grant a ticket -r, --ticket-revoke=value Revoke a ticket -b, --ticket-standby=value Make a ticket standby -e, --ticket-activate=value Activate a ticket Output Options: -I, --save-input=value Save the input configuration to the named file -O, --save-output=value Save the output configuration to the named file -G, --save-graph=value Save the transition graph (XML format) to the named file -D, --save-dotfile=value Save the transition graph (DOT format) to the named file -a, --all-actions Display all possible actions in the DOT graph - even ones not part of the transition Data Source: -L, --live-check Connect to the CIB and use the current contents as input -x, --xml-file=value Retrieve XML from the named file -p, --xml-pipe Retrieve XML from stdin EXAMPLES
Pretend a recurring monitor action found memcached stopped on node fred.example.com and, during recovery, that the memcached stop action failed # crm_simulate -LS --op-inject memcached:0_monitor_20000@bart.example.com=7 --op-fail memcached:0_stop_0@fred.example.com=1 --save-output /tmp/memcached-test.xml Now see what the reaction to the stop failure would be # crm_simulate -S --xml-file /tmp/memcached-test.xml AUTHOR
Written by Andrew Beekhof REPORTING BUGS
Report bugs to pacemaker@oss.clusterlabs.org Pacemaker 1.1.10-29.el7 June 2014 PACEMAKER(8)
All times are GMT -4. The time now is 10:00 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy