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@
3. Shell Programming and Scripting
I have a file which has hundred of records with fixed number of fields. In each record there is set of 8 characters which represent the duration of that activity. I want to sum up the duration present in all the records for a report. The problem is the duration changes per record so I... (5 Replies)
Discussion started by: danish0909
4. Shell Programming and Scripting
Hi, I'm new to korn and having trouble capturing the text output from one program in an array that I can then feed into another program. Direct approaches didn't work, so I've tried to break it down thus:
The program lonlat2pixline gives the values I need in the second column, so I print that... (4 Replies)
Discussion started by: daurin
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'm tring to write down a simple script that would execute a command and wait until it returns a specific result.
This is what i did:
while ]; do
It seems to work until the command 'jobs' return the list of jobs in execution, but... (4 Replies)
Discussion started by: lifedj
7. Shell Programming and Scripting
in shell script, i have the command swstart -p which returns an output. i want to store the output of this command into a variable. how i can do that
excerpt from the script
# Program: swstart -p
# Description: Starts the sentinels on Slave server
... (4 Replies)
Discussion started by: lookinginfo
8. 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
9. 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
10. Shell Programming and Scripting
is it possible to save the output of a unix command executed in perl to be saved in hash variable..
like i have the command
`find $mypath ! -user mainuser -printf \"\%u \%h\\n\"`;
this will print all the users other than mainuser with their paths.
so is possible to capture... (2 Replies)
Discussion started by: saapa
LOGSAVE(8) System Manager's Manual LOGSAVE(8)
logsave - save the output of a command in a logfile
logsave [ -asv ] logfile cmd_prog [ ... ]
The logsave program will execute cmd_prog with the specified argument(s), and save a copy of its output to logfile. If the containing
directory for logfile does not exist, logsave will accumulate the output in memory until it can be written out. A copy of the output will
also be written to standard output.
If cmd_prog is a single hyphen ('-'), then instead of executing a program, logsave will take its input from standard input and save it in
logsave is useful for saving the output of initial boot scripts until the /var partition is mounted, so the output can be written to
-a This option will cause the output to be appended to logfile, instead of replacing its current contents.
-s This option will cause logsave to skip writing to the log file text which is bracketed with a control-A (ASCII 001 or Start of
Header) and control-B (ASCII 002 or Start of Text). This allows progress bar information to be visible to the user on the console,
while not being written to the log file.
-v This option will make logsave to be more verbose in its output to the user.
Theodore Ts'o (email@example.com)
E2fsprogs version 1.42.9 December 2013 LOGSAVE(8)