05-10-2010
Unix file redirect problems
hi,
In my script, i wrote a line like this : ls -lrt tpa* > x.xls
while executing the script, it showing o/p as "tpa*: No such file or directory" because there is no files starts with tpa*
now, instead of server showing this msg, i want my scritpt to display as : "No jobs available which starts with tpa*"
so how can i change my script
10 More Discussions You Might Find Interesting
1. HP-UX
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 (2 Replies)
Discussion started by: megh
2 Replies
3. Shell Programming and Scripting
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
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
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
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
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
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
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
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
LEARN ABOUT DEBIAN
tpbconv
tpbconv(1) GROMACS suite, VERSION 4.5.4-dev-20110404-bc5695c tpbconv(1)
NAME
tpbconv - makes a run input file for restarting a crashed run
VERSION 4.5.4-dev-20110404-bc5695c
SYNOPSIS
tpbconv -s topol.tpr -f traj.trr -e ener.edr -n index.ndx -o tpxout.tpr -[no]h -[no]version -nice int -extend real -until real -nsteps int
-time real -[no]zeroq -[no]vel -[no]cont
DESCRIPTION
tpbconv can edit run input files in four ways.
1. by modifying the number of steps in a run input file with options -extend, -until or -nsteps (nsteps=-1 means unlimited number of
steps)
2. (OBSOLETE) by creating a run input file for a continuation run when your simulation has crashed due to e.g. a full disk, or by making
a continuation run input file. This option is obsolete, since mdrun now writes and reads checkpoint files. Note that a frame with coor-
dinates and velocities is needed. When pressure and/or Nose-Hoover temperature coupling is used an energy file can be supplied to get an
exact continuation of the original run.
3. by creating a .tpx file for a subset of your original tpx file, which is useful when you want to remove the solvent from your .tpx
file, or when you want to make e.g. a pure Calpha .tpx file. Note that you may need to use -nsteps -1 (or similar) to get this to work.
WARNING: this .tpx file is not fully functional.
4. by setting the charges of a specified group to zero. This is useful when doing free energy estimates using the LIE (Linear Interaction
Energy) method.
FILES
-s topol.tpr Input
Run input file: tpr tpb tpa
-f traj.trr Input, Opt.
Full precision trajectory: trr trj cpt
-e ener.edr Input, Opt.
Energy file
-n index.ndx Input, Opt.
Index file
-o tpxout.tpr Output
Run input file: tpr tpb tpa
OTHER OPTIONS
-[no]hno
Print help info and quit
-[no]versionno
Print version info and quit
-nice int 0
Set the nicelevel
-extend real 0
Extend runtime by this amount (ps)
-until real 0
Extend runtime until this ending time (ps)
-nsteps int 0
Change the number of steps
-time real -1
Continue from frame at this time (ps) instead of the last frame
-[no]zeroqno
Set the charges of a group (from the index) to zero
-[no]velyes
Require velocities from trajectory
-[no]contyes
For exact continuation, the constraints should not be applied before the first step
SEE ALSO
gromacs(7)
More information about GROMACS is available at <http://www.gromacs.org/>.
Mon 4 Apr 2011 tpbconv(1)