OT: Unix redirecting question

fernando.olmos at hpa.com.au fernando.olmos at hpa.com.au
Sun Dec 4 18:18:24 CST 2005


Hi guys.

I hope this is not too of topic, as it's related to some work I am doing
compiling Powerhouse programs, but the script that does this is a Unix
cshell script (I miss VMS!!).

Anyway, if there is any Unix guys in here, maybe you may help me,
please?

I have the following "BAT" file (cshell script for Compaq Tru64 UNIX
V5.1 (Rev. 732)):


#!/bin/csh -f

#Points to where powerhouse has been installed
setenv PH_USR /usr/cognos/ph823d7
setenv PH_VER d7
source /usr/cognos/ph823d7/setpow.csh

setenv ORACLE_HOME /users/oracle/OraHome1

#change directory to the mips source folder
cd /mis/mips/src

/bin/date

################################################################
# Recompile global QUICK screens, for Sydney
qdesign dict=/mis/sydmips/obj/phd.pdc << 'flag1'
use /mis/sydmips/obj/compilemips.qks nolist
exit
'flag1' > /mis/sydmips/obj/compilemips.out2 2>&1


*********

The problem is how to get the standard error and output into the "out2"
file.

I want to run the script in batch mode (at/batch) and have the output
sent to a file. In VMS of course this is SOOOOO easy to do, but I am
going round and round with this script!

I tried simply submitting the script using AT.

ie:

at -c -m -f /mis/sydmips/obj/compilemips.bat now

I've tried even ...

echo /mis/sydmips/obj/compilemips.bat | at -c -m now

or

at -c -m now < /mis/sydmips/obj/compilemips.bat

and in all cases I get either "ambiguous redirecting" or "line overfill"
or nothing at all!

I just can't get it to run and output the results!

The compilemips.qks is a simple collection of "use source.qks" lines.

Thanks in advance

chao

F.
**********************************************************************
IMPORTANT
The contents of this e-mail and its attachments are confidential and intended
solely for the use of the individual or entity to whom they are addressed.  If
you received this e-mail in error, please notify the HPA Postmaster, postmaster at hpa.com.au,
then delete  the e-mail.
This footnote also confirms that this e-mail message has been swept for the
presence of computer viruses by Ironport. Before opening or using any
attachments, check them for viruses and defects.
Our liability is limited to resupplying any affected attachments.
HPA collects personal information to provide and market our services. For more
information about use, disclosure and access see our Privacy Policy at
www.hpa.com.au
**********************************************************************



More information about the powerh-l mailing list