Unix redirecting question

Joe Boyle atla38 at dsl.pipex.com
Sun Dec 4 18:58:25 CST 2005


my unix notes suggest using something that below,

cd /mis/sydmips/obj
qdesign dict=./phd.pdc auto=./compilemips.qks 2>&1 1> ./compilemips.out2

I used the cd only to get the command syntax on 1 line; hope it helps.

Regards, Joe.


-----Original Message-----
From: powerh-l-bounces+atla38=dsl.pipex.com at lists.sowder.com
[mailto:powerh-l-bounces+atla38=dsl.pipex.com at lists.sowder.com] On Behalf Of
fernando.olmos at hpa.com.au
Sent: 05 December 2005 00:18
To: powerh-l at lists.sowder.com
Subject: OT: Unix redirecting question

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
**********************************************************************

-- 
= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l at lists.sowder.com
Subscribe: "subscribe" in message body to powerh-l-request at lists.sowder.com
Unsubscribe: "unsubscribe &lt;password&gt;" in message body to
powerh-l-request at lists.sowder.com
http://lists.sowder.com/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.



More information about the powerh-l mailing list