[Charset ISO-8859-1 unsupported, filtering to ASCII...]Quote:Keith A. Clay writes:
[You can also use 'v' to view or save this part.]
There is no trick at all, just use the standard Bourne shell grammar forQuote:> I am trying to run IQ (Intelligent Query Report Writer) scripts from
> cron so that reports can do processing at night. The problem is that
> they bomb. They run fine from a prompt and run fine from 'at'. Is
> there a way to trick IQ into thinking that it is actually running on a
> terminal?
> example command line:
> % iq3 -Q -dddmst3.dat -pparameter_file DATABASE_PROCEDURE_NAME
> where -Q - tells it it is a batch and use iqbatch.err for errors
> -d - tells it which data dictionary
> -p - is basically the search criteria
> Does anyone use IQ in this way, or know a way around the problem?
putting variables into the environment of a command:
A=a_value S=something command
or in your case
TERM=wy50 iq3 -Q -dddmst3.dat -pparameter_file DATABASE_PROCEDURE_NAME
noting that probably ANY valid value for TERM will probably work.
--