Using onunload command in shell script
Posted in 2001
Hi!
My shell script contains:
#!/bin/sh
#
mt -f /dev/rmt/1 rewind
#
# Stores7 Database Tables.
onunload -t /dev/rmt/1n -b 1024 -s 68157440 stores7:call_type << @ 2>&1
echo '\\n'
onunload -t /dev/rmt/1n -b 1024 -s 68157440 stores7:catalog << @ 2>&1
echo '\\n'
onunload -t /dev/rmt/1n -b 1024 -s 68157440 stores7:cust_calls << @ 2>&1
echo '\\n'
onunload -t /dev/rmt/1n -b 1024 -s 68157440 stores7:customer << @ 2>&1
echo '\\n'
onunload -t /dev/rmt/1n -b 1024 -s 68157440 stores7:items << @ 2>&1
echo '\\n'
onunload -t /dev/rmt/1n -b 1024 -s 68157440 stores7:log_record << @ 2>&1
echo '\\n'
onunload -t /dev/rmt/1n -b 1024 -s 68157440 stores7:manufact << @ 2>&1
echo '\\n'
onunload -t /dev/rmt/1n -b 1024 -s 68157440 stores7:orders << @ 2>&1
The above script only executes the first onunload command and come out from
the script.
Can anyone help me on this.
regards
Muhammad Usman
musman@iffco.com
------------------------------------------------------------
Get your FREE web-based e-mail and newsgroup access at:
http://MailAndNews.com
Create a new mailbox, or access your existing IMAP4 or
POP3 mailbox from anywhere with just a web browser.
------------------------------------------------------------