Hello Frank, You can A) write the archive_stage command and the archive_stage_repeat command to an input file for the dbmcli call ("dbmcli ... <inputfile") or use the inline input data facility of your shell:
dbmcli -u control,control -d $SID -uUTL -c <<EOF archive_stage $ARCHIVE_MEDIUM $LOG_MEDIUM NOVERIFY KEEP archive_stage $ARCHIVE_MEDIUM2 $LOG_MEDIUM VERIFY EOF Best regards, Tilo Heinrich Senior Developer MaxDB&liveCache SAP AG http://www.sap.com <http://www.sap.com/> Sitz der Gesellschaft/Registered Office: Walldorf, Germany Vorstand/SAP Executive Board: Henning Kagermann (Sprecher/CEO), Shai Agassi, Léo Apotheker, Werner Brandt, Claus Heinrich, Gerhard Oswald, Peter Zencke Vorsitzender des Aufsichtsrats/Chairperson of the SAP Supervisory Board: Hasso Plattner Registergericht/Commercial Register Mannheim No HRB 350269 Diese E-Mail kann Betriebs- oder Geschäftsgeheimnisse oder sonstige vertrauliche Informationen enthalten. Sollten Sie diese E-Mail irrtümlich erhalten haben, ist Ihnen eine Kenntnisnahme des Inhalts, eine Vervielfältigung oder Weitergabe der E-Mail ausdrücklich untersagt. Bitte benachrichtigen Sie uns und vernichten Sie die empfangene E-Mail. Vielen Dank. This e-mail may contain trade secrets or privileged, undisclosed, or otherwise confidential information. If you have received this e-mail in error, you are hereby notified that any review, copying, or distribution of it is strictly prohibited. Please inform us immediately and destroy the original transmittal. Thank you for your cooperation. -----Original Message----- From: Frank Sent: Freitag, 1. Juni 2007 14:34 To: maxdb@lists.mysql.com Subject: using archive_stage und archive_stage_repeat in scripts Hallo, regarding maxdb-documentation I have to use archive_stage und archive_stage_repeat in one utility-session. In addition to that we want to use environmentvariables in the archivingscript. Our script looks like: #/bin/sh export SID=ALT export LOG_MEDIUM=$SID'_LOG' export ARCHIVE_MEDIUM=BACKUP_LOG_PIPE dbmcli -u control,control -d $SID -uUTL -c archive_stage $ARCHIVE_MEDIUM $LOG_MEDIUM NOVERIFY KEEP How can I add the archive_stage_repeat-step in the script and make shure both steps run in the same utility-session with Regards Frank