Re: Automating a tar -M... Looking for ideas

From: cyber0ne (ddonahue_at_ccs.neu.edu)
Date: 12/31/04


Date: 30 Dec 2004 18:56:49 -0800

Further and more finely tuned Googling seems to have turned up my own
answer: Replace mt's -M prompt (see mt man page) with a script such
as:

#!/bin/sh

/bin/mt -f /dev/tape rewoffl
while /bin/mt -f /dev/tape status | grep DR_OPEN
do
sleep 60
done

Granted, this won't be fully tested until my first tape finishes (when
I wake up in the morning), but it looks like it should work. Let me
know if you have any other insights, though.
Regards,
David P. Donahue
ddonahue@ccs.neu.edu



Relevant Pages

  • behavioral change of "read" builtin for sh on 8-CURRENT
    ... This script waits for terminal input for each of the above variables (INT, ... On 8-CURRENT if I hit Enter with no input at the prompt the system seems to ... recognize the newline as input and continues to sit there until I hit Enter ... Enter network interface: ...
    (freebsd-current)
  • behavioral change of "read" builtin for sh on 8-CURRENT
    ... This script waits for terminal input for each of the above variables (INT, ... On 8-CURRENT if I hit Enter with no input at the prompt the system seems to ... recognize the newline as input and continues to sit there until I hit Enter ... Enter network interface: ...
    (freebsd-questions)
  • Re: behavioral change of "read" builtin for sh on 8-CURRENT
    ... This script waits for terminal input for each of the above variables (INT, ... On 8-CURRENT if I hit Enter with no input at the prompt the system seems to ... recognize the newline as input and continues to sit there until I hit Enter ... Enter network interface: ...
    (freebsd-current)
  • Re: behavioral change of "read" builtin for sh on 8-CURRENT
    ... This script waits for terminal input for each of the above variables (INT, ... On 8-CURRENT if I hit Enter with no input at the prompt the system seems to ... recognize the newline as input and continues to sit there until I hit Enter ... Enter network interface: ...
    (freebsd-questions)
  • RE: Internet explorer will not update
    ... Connections>> Double click Internet Options, ... Automatic prompting for ActiveX controls ... Prompt ... Initialize and script ActiveX controls not marked as Safe ...
    (microsoft.public.windowsxp.general)