SUMMARY: dump needs /dev/tty--how to dump from cron?

From: Brion Moss (
Date: Sun Jul 30 1995 - 01:49:04 CDT

First, thanks to everyone who responded--I appreciate it greatly.

To recap the question: I was doing dumps from the crontab, and they
were getting aborted with the error "Cannot open /dev/tty". The
basic thrust of the answers were:

1) If it's trying to open /dev/tty, that means there's a problem
   I need to deal with. Look carefully at the output of the dump
   and at /var/adm/messages to see if there's anything going wrong.
   (I couldn't see any problems, and the dump ran fine when started
   manually). Several people said that they did dumps out of cron
   every day without hitting this problem.

2) Use expect, available as
   Expect is designed to provide a psuedo-tty so that you can batch
   command like dump that want to be able to talk to the tty.

I also had one person suggest I grab the sources for dump off of and hack it so it doesn't need /dev/tty anymore
(and isn't it time someone fixed dump anyway?) but I felt that was
overkill, at least for my situation.

Thanks to: (S. D. Raffensberger 500622500 (RD)) (Bismark Espinoza) (Steve Pryczak)
Ian MacPhedran <>
Patrick L. Nolan <pln@egret1.Stanford.EDU>
Lupe Christoph <> (Michael Sullivan)

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:30 CDT