I'll not know for sure until tomorrow morning, but I think that the answer
was provided by Casper Dik:
> Do you have stty commands in .cshrc?
>
> Non-interactive shells should ignore .login.
>
>
> Of course, if you set $prompt yourself in .cshrc all bets are off
The script running from crontab was doing a "su - ingres -c ... ". The shell
for the "ingres" account is csh, and .cshrc contains a "set prompt ...".
Therefore "prompt" was indeed being defined even for non-interactive jobs.
Rodney
----- Original Message -----
W've got a turnkey system that I'm having to provide some support for. It's
running on Solaris 2.5.1, and the vendor of the application running on it is
rather fond of csh. When commands are executed from "cron", the following
errors show up:
stty: : No such device or address
stty: : No such device or address
The culprit appears to be in the .login:
stty -istrip
stty echoe
To get around it, I tried the following:
if ( $?prompt ) then
stty -istrip
stty echoe
endif
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:22 CDT