|
Home > Archive > Unix Shell > November 2005 > operator communication with cron script
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
operator communication with cron script
|
|
|
| I have a script that ejects tapes into a bulk loader. The loader has
10 slots and there are times when more than 10 tapes need to be
ejected.
What I want to do is after 10 tapes are ejected into the loader to
communicate with the operator to empty the loader, the operator to
communicate with the script that the loader is empty, and the script to
wait until that happens and then continue on.
Is there a way for a script to wait for some sort of signal (or
something) from an operator before continuing ?
This reveals my geezertood, but VMS has this ability using the verb
"reply". Does unix (aix) have anything similar ?
| |
| Bill Marcum 2005-11-30, 5:55 pm |
| On 30 Nov 2005 06:32:57 -0800, rich
<hammersl@xavier.edu> wrote:
> I have a script that ejects tapes into a bulk loader. The loader has
> 10 slots and there are times when more than 10 tapes need to be
> ejected.
>
> What I want to do is after 10 tapes are ejected into the loader to
> communicate with the operator to empty the loader, the operator to
> communicate with the script that the loader is empty, and the script to
> wait until that happens and then continue on.
>
> Is there a way for a script to wait for some sort of signal (or
> something) from an operator before continuing ?
>
Write a script with standard input and output directed to the operator's
console (probably /dev/console or /dev/tty1), or to a terminal reserved
for that purpose. You might use a "write" command to notify the
operator when the script starts.
--
The climate of Bombay is such that its inhabitants have to live elsewhere.
|
|
|
|
|