The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > SUN Solaris
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #7 (permalink)  
Old 01-17-2008
demrahc demrahc is offline
Registered User
 

Join Date: Jan 2008
Posts: 1
Thumbs down could not obtain latest contract from popen(3C): No such process

could not obtain latest contract from popen(3C): No such process

Got this error when starting a script from cron on Solaris10
Read a lot about it googling around.

Redirecting stdout and stderr to a file (exec 1>/tmp/loglog 2>&1) solved the problem as has been indicated by others; In my case the output was:
"tput: No value for $TERM and no -T specified"

My cron-activated script called another script that uses tput which of course can't do a thing without a TERM...
Which also explained why there was no problem running it manually.

So, it appears to be a bug in cron with handling the output of a script started by it.

If you don't want to or can't wait for patches, redirect stdout/stderr to a file, check the contents of it, solve the problem or, redirect them to /dev/null....
BTW, output on stdout and stderr both cause the same error.

Sun, you should have solved this years ago!
Reply With Quote