rlwrap: error: stdin is not a TTY: Inappropriate ioctl for device

utility exp execution of cron and give error, below works fine when I run manually

rlwrap: error: stdin is not a TTY: Inappropriate ioctl for device
the script command is: exp $user/$pass@$tnsen parfile = mypar. Nominal

no idea what it is?

Running in cron uses a different environment of your username. Different Admins deal with it in different ways, and there are slight differences on platforms and shells.

Usually an indicator that some .profile/etc/profile .bashrc or similar connection script is missing a test whether if the environment is attached to a terminal. There are several ways to test, are a ways:

if [ -t 0 -a -t 1 -a -t 2 ]
then
... your stty related commands
fi

rlwrap could be installed as an alias of sqlplus, so these commands might want to unalias when not on terminal, or maybe you want to alias various, with or without rlwrap. You can get the whole administration team in this discussion.

Tags: Database

Similar Questions

Maybe you are looking for