06-25-2007
Quote:
Originally Posted by
rinku
It is working. Cloud u please explain the meaning of 2>&1
Thanx .....
Redirect output of stderr (2) to where stdout (1) is redirected
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi all,
I want to check if the first or the second or the third argument of call to a shell script is empty.
How do i do that in a short way. I watched some examples and i believe
if checks if an argument is NULL.
If so, how can i add the checks for argument 2 and 3 in the statement?
... (1 Reply)
Discussion started by: aukequist
1 Replies
2. Shell Programming and Scripting
In my ksh script, if the conditions of a if statement are true, then do nothing; otherwise, execute some commands.
How do I write the "do nothing" statement in the following example?
Example:
if (( "$x"="1" && "$y"="a" && "$z"="happy" ))
then
do nothing
else
command
command
fi... (3 Replies)
Discussion started by: april
3 Replies
3. IP Networking
Hi,
We have smb client running on two of the linux boxes and smb server on another linux system. During a backup operation which uses smb, read of a file was allowed while write to the same file was going on.Also simultaneous writes to the same file were allowed.Following are the settings in the... (1 Reply)
Discussion started by: swatidas11
1 Replies
4. Shell Programming and Scripting
Hi All,
I am having an XML tag like:
<detail sim_ser_no_1="898407109001000090"
imsi_1="452070001000090">
<security>ADM1=????</security>
<security>PIN1=????</security>
<security>PIN2=????</security>
... (2 Replies)
Discussion started by: ss_ss
2 Replies
5. Shell Programming and Scripting
Hi
What is the syntax for if statement using && and || operator?
if && ] ||
here its giving me an error to this if statement
any suggestion?? (2 Replies)
Discussion started by: Avi
2 Replies
6. Shell Programming and Scripting
Hi all, i am writing a shell script in which i got stuck when tried to use a if statement.
This is my code :
#!/bin/sh
today=`date +"%a %b %e"`
find /prod/logs -name '*.log' -mtime 0 -exec cp {} /home/hzjnr0/test \;
find /home/hzjnr0/test -type f -exec grep -i "successfully" {} \; >... (6 Replies)
Discussion started by: Soma Das
6 Replies
7. Shell Programming and Scripting
Hi Friends,
I'm a great fan of this forum... it has helped me tone my skills in shell scripting. I have a challenge here, which I'm sure you guys would help me in achieving...
File A has a list of job ids and I need to compare this with the File B (*.log) and File C (extend *.log) and copy... (6 Replies)
Discussion started by: asnandhakumar
6 Replies
8. Shell Programming and Scripting
Hi There,
I am trying to load data from a csv file into a DB during our DB migration phase. I am successfully able export all data into a .csv file but those have to rewritten in terms insert statement which will allow for further population of same data in different DB
My exiting csv record... (6 Replies)
Discussion started by: bhaskar_m
6 Replies
9. Shell Programming and Scripting
Hi,
I need to compare 2 text files with around 60000 rows and 1 column. I need to compare these and write the mismatch data to 3rd file.
File1 - file2 = file3
wc -l file1.txt
58112
wc -l file2.txt
55260
head -5 file1.txt
101214200123
101214700300
101250030067
101214100500... (10 Replies)
Discussion started by: Divya Nochiyil
10 Replies
10. Shell Programming and Scripting
Hi folks,
I have a scenario to convert the update statements into insert statements using shell script (awk, sed...) or in database using regex.
I have a bunch of update statements with all columns in a file which I need to convert into insert statements.
UPDATE TABLE_A SET COL1=1 WHERE... (0 Replies)
Discussion started by: dev123
0 Replies
LEARN ABOUT DEBIAN
ompi-iof
OMPI-IOF(1) Open MPI OMPI-IOF(1)
NAME
ompi-iof, orte-iof - Displays a copy of the output streams from a process.
NOTE: ompi-iof, and orte-iof are exact synonyms for each other. Using any of the names will result in exactly identical behavior.
SYNOPSIS
ompi-iof [ options ]
Options
ompi-iof will display a copy of the indicated stdout, stderr, and/or stddiag streams from the designated process.
-pid | --pid
The pid of the mpirun executing the process whose streams are to be copied
-stdout | --stdout
Display a copy of the specified process' stdout. If no options are specified, this will act as the default
-stderr | --stderr
Display a copy of the specified process' stderr.
-stddiag | --stddiag
Display a copy of the specified process' stddiag.
-rank | --rank
The rank of the process whose output is to be copied.
DESCRIPTION
ompi-iof displays a copy of the indicated stdout, stderr, and/or stddiag streams from the designated process. At this time, a ctrl-C must
be used to terminate the program. The program will terminate cleanly, telling the associated mpirun to close the requested streams before
exiting.
SEE ALSO
orterun(1)
1.4.5 Feb 10, 2012 OMPI-IOF(1)