Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Luisma Sanchez wanted to automate ontape -s -L0 from a Unix shell, since it prompts for the tape and Return. One poster suggested recording the responses in a file and redirecting it into ontape. Roelof van leuveren piped echo with a no answer into ontape -s -L 0 in a cron script on Solaris 2.6, which he used successfully.
Auto-generated by Claude from the posts below — may be imperfect; read the full thread.
Luisma Sanchez — — source: Informix-list mailing list archive (1991-1998)
Hello !
Sorry for my poor english, but i need some help .
I want to do an automatic archive from a unix shell.
When i put ontape -s -L0, the system show me to
put the tape on and press Return to proceed....
How can i send the appropiate characters in the unix shell
after the ontape command, to automatize this question ?
Sorry again and thank you!
Luisma.
In article <81bb17$irm$1@unbe.sarenet.es>,
"Luisma Sanchez" <luismas@asemas.es> wrote:
> Hello !
>
> Sorry for my poor english, but i need some help .
>
> I want to do an automatic archive from a unix shell.
> When i put ontape -s -L0, the system show me to
> put the tape on and press Return to proceed....
>
> How can i send the appropiate characters in the unix shell
> after the ontape command, to automatize this question ?
>
> Sorry again and thank you!
>
> Luisma.
>
>
You can write a file that has all the responses that ontape will need.
Run ontape once manually and write down everything you type. Then open
up a file on UNIX and type that all again. Then you can call ontape -s
-L0 < <that file name>.
--
# unrm /
ksh: unrm: not found
# man cpio
Sent via Deja.com http://www.deja.com/
Before you buy.
↪ replying to Luisma Sanchez
Roelof van leuveren — — source: Informix-list mailing list archive (1991-1998)
hello Luisma,
You can also try echo '\\no'|ontape -s -L 0 in a unix script.
I use this command in a script including the necessary environment vars
which will be executed from the crontab .
good luck
Luisma Sanchez <luismas@asemas.es> wrote in message
news:81bb17$irm$1@unbe.sarenet.es...
> Hello !
>
> Sorry for my poor english, but i need some help .
>
> I want to do an automatic archive from a unix shell.
> When i put ontape -s -L0, the system show me to
> put the tape on and press Return to proceed....
>
> How can i send the appropiate characters in the unix shell
> after the ontape command, to automatize this question ?
>
> Sorry again and thank you!
>
> Luisma.
>
>
>
>
↪ replying to Luisma Sanchez
Roelof van leuveren — — source: Informix-list mailing list archive (1991-1998)
hello Luisma,
You can also try echo '\\no'|ontape -s -L 0 in a unix script on solaris
2.6
I use this command in a script including the necessary environment vars
which will be executed from the crontab .
good luck
Luisma Sanchez <luismas@asemas.es> wrote in message
news:81bb17$irm$1@unbe.sarenet.es...
> Hello !
>
> Sorry for my poor english, but i need some help .
>
> I want to do an automatic archive from a unix shell.
> When i put ontape -s -L0, the system show me to
> put the tape on and press Return to proceed....
>
> How can i send the appropiate characters in the unix shell
> after the ontape command, to automatize this question ?
>
> Sorry again and thank you!
>
> Luisma.
>
>
>
>
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.