Sponsored Content
Full Discussion: Unix file redirect problems
Top Forums Shell Programming and Scripting Unix file redirect problems Post 302420037 by anbu23 on Monday 10th of May 2010 11:38:38 AM
Old 05-10-2010
Code:
ls -lrt tpa* > x.xls 2>/dev/null
if [ $? -eq 2 ]; then echo "No jobs available which starts with tpa*"; fi

This User Gave Thanks to anbu23 For This Post:
 

10 More Discussions You Might Find Interesting

1. HP-UX

How to Redirect the error messages from Syslog file to our own Application Log File

Hello, I am New to Unix. I am Using HP-UX 9000 Series for my Application. I am Currently Facing an Issue that the error messages are being written in the syslog file instead of the Application Log File. The Codes for that Syslog.h is written in Pro*C. I want to know how to Redirect these... (3 Replies)
Discussion started by: balasubramaniam
3 Replies

2. HP-UX

how to redirect the growing contents of log file to another file in unix

how to redirect the growing contents of log file to another file in unix (2 Replies)
Discussion started by: megh
2 Replies

3. Shell Programming and Scripting

How to redirect value from sql select statment to unix variable

Hi, I need to get the value from the table using the sql command and store this value into the unix variable so that i can use this value for furthure use.. Please can any body help me in this regards Thanks & Regards Abdul Hafeez Shaik (17 Replies)
Discussion started by: abdulhafeez
17 Replies

4. Shell Programming and Scripting

Call and redirect output of Oracle stored procedure from unix script

Hi, Can you assist me in how to redirect the output of oracle stored procedure from unix script? Something similar to what i did for sybase isql -U$MYDBLOG -D$MYDBNAME -S$MYDBSVR -P$MYDBPWD -o$MYFILE<< %% proc_my_test 8 go %% Thanks in advance - jak (0 Replies)
Discussion started by: jakSun8
0 Replies

5. Shell Programming and Scripting

ksh- redirect stderr to file and then modify the file

I have the following: remsh $host -n 2>>syslog_issue_list.txt grep -i -e "EMS" -e "error" -e "warning" -e "excessive" /var/adm/syslog/syslog.log | awk /"$DATE1"/ | awk -vhost="$host" '!/remsh|telnetd/{print host "\n", $0 >> "syslog_issue_list.txt"}' I am creating a health script that has... (4 Replies)
Discussion started by: chipblah84
4 Replies

6. UNIX for Dummies Questions & Answers

STDOUT redirect to file and format problems

Hi All, I am using centOS. When I try to redirect STDOUT to a file, it ends up in getting some funny characters. For example ... STDOUT of the command as follows. $ ls H3k27me3 H3k36me3 H3k4me1 H3k4me2 H3k4me3 H3k9ac H4k20me1 $ ls >test $ cat test ^ (1 Reply)
Discussion started by: Chulamakuri
1 Replies

7. Shell Programming and Scripting

Redirect output from SQL to unix variable

Hi, I have a requirement to store oracle sqlplus output to some unix variable, count the records and then print the output on the screen. Can you please point me to any sample program for reference purpose. Thanks a lot for your time. (0 Replies)
Discussion started by: bhupinder08
0 Replies

8. Shell Programming and Scripting

Read file from input and redirect to output file

Hi , i am having an file which contains 5 file_name data, i need to read the file name and will perform certain operation and generate out file names with named as 5 individual file_names for eg: file.txt contains file_name1.txt|hai file_name2.txt|bye file_name3.txt|how... (3 Replies)
Discussion started by: rohit_shinez
3 Replies

9. UNIX for Dummies Questions & Answers

Redirect to a file

Hi, Is there a way to redirect the output of a set of commands to a file instead of using << at every command in bash shell. For eg (echo hostname echo "Comparing 2 files" comm -3 file1 file2) >>file3 (3 Replies)
Discussion started by: Rossdba
3 Replies

10. Programming

C, UNIX: How to redirect 'stdout' to a file from a C code?

I am looking for a way to redirect standard output to a file from a C-code; so, any 'cout<<..' or 'printf(...)' will be written into a file. I have a server source that I need to debug. That program called by RPC (remote procedure call) and has no any session to print out anything. I have... (3 Replies)
Discussion started by: alex_5161
3 Replies
gmxcheck(1)					 GROMACS suite, VERSION 4.5.4-dev-20110404-bc5695c				       gmxcheck(1)

NAME
gmxcheck - checks and compares files VERSION 4.5.4-dev-20110404-bc5695c SYNOPSIS
gmxcheck -f traj.xtc -f2 traj.xtc -s1 top1.tpr -s2 top2.tpr -c topol.tpr -e ener.edr -e2 ener2.edr -n index.ndx -m doc.tex -[no]h -[no]ver- sion -nice int -vdwfac real -bonlo real -bonhi real -[no]rmsd -tol real -abstol real -[no]ab -lastener string DESCRIPTION
gmxcheck reads a trajectory ( .trj, .trr or .xtc), an energy file ( .ene or .edr) or an index file ( .ndx) and prints out useful infor- mation about them. Option -c checks for presence of coordinates, velocities and box in the file, for close contacts (smaller than -vdwfac and not bonded, i.e. not between -bonlo and -bonhi, all relative to the sum of both Van der Waals radii) and atoms outside the box (these may occur often and are no problem). If velocities are present, an estimated temperature will be calculated from them. If an index file, is given its contents will be summarized. If both a trajectory and a .tpr file are given (with -s1) the program will check whether the bond lengths defined in the tpr file are indeed correct in the trajectory. If not you may have non-matching files due to e.g. deshuffling or due to problems with virtual sites. With these flags, gmxcheck provides a quick check for such problems. The program can compare two run input ( .tpr, .tpb or .tpa) files when both -s1 and -s2 are supplied. Similarly a pair of trajectory files can be compared (using the -f2 option), or a pair of energy files (using the -e2 option). For free energy simulations the A and B state topology from one run input file can be compared with options -s1 and -ab. In case the -m flag is given a LaTeX file will be written consisting of a rough outline for a methods section for a paper. FILES
-f traj.xtc Input, Opt. Trajectory: xtc trr trj gro g96 pdb cpt -f2 traj.xtc Input, Opt. Trajectory: xtc trr trj gro g96 pdb cpt -s1 top1.tpr Input, Opt. Run input file: tpr tpb tpa -s2 top2.tpr Input, Opt. Run input file: tpr tpb tpa -c topol.tpr Input, Opt. Structure+mass(db): tpr tpb tpa gro g96 pdb -e ener.edr Input, Opt. Energy file -e2 ener2.edr Input, Opt. Energy file -n index.ndx Input, Opt. Index file -m doc.tex Output, Opt. LaTeX file OTHER OPTIONS
-[no]hno Print help info and quit -[no]versionno Print version info and quit -nice int 0 Set the nicelevel -vdwfac real 0.8 Fraction of sum of VdW radii used as warning cutoff -bonlo real 0.4 Min. fract. of sum of VdW radii for bonded atoms -bonhi real 0.7 Max. fract. of sum of VdW radii for bonded atoms -[no]rmsdno Print RMSD for x, v and f -tol real 0.001 Relative tolerance for comparing real values defined as 2*(a-b)/(|a|+|b|) -abstol real 0.001 Absolute tolerance, useful when sums are close to zero. -[no]abno Compare the A and B topology from one file -lastener string Last energy term to compare (if not given all are tested). It makes sense to go up until the Pressure. SEE ALSO
gromacs(7) More information about GROMACS is available at <http://www.gromacs.org/>. Mon 4 Apr 2011 gmxcheck(1)
All times are GMT -4. The time now is 05:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy