[Ilugc] standard in must be a tty -- why?

  • From: bhuvanbk@xxxxxxxxxxxxx (Bhuvan A)
  • Date: Mon, 2 Sep 2002 15:19:32 +0530 (IST)

cron jobs do not take any environment setting from
the profile files. Probably you need to set proper
environment variables like PATH,SSH_TTY etc. 
You may try by giving these 
enviroments in your cron script

Thankx for your suggestion. Now i run .bashrc before each command in my 
script but of no use. Still it is reporting the same error('standard in 
must be a tty'). AFAIK, SSH_TTY is set as the terminal number of the 
logged in host, not the terminal number of the host from where we are 
logging in. So in my case i suppose not to set that variable (SSH_TTY). 

Any other clues are very welcome.

regards,
bhuvaneswaran


Other related posts: