The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
File Archive Script KeesH Shell Programming and Scripting 10 06-09-2008 08:11 AM
making a archive script jimmyc Shell Programming and Scripting 1 09-15-2007 01:02 AM
Archive Script-Urgent indira HP-UX 1 05-16-2007 10:31 AM
Archive script old files kayarsenal Shell Programming and Scripting 1 08-24-2006 10:46 PM
script to archive all the log files tintedwindow Shell Programming and Scripting 0 06-13-2006 07:51 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 05-22-2007
Registered User
 

Join Date: May 2007
Posts: 17
Script to archive file

Hi All,

I am trying to archive a file. I have the script to archive a file which is given below:
#! /usr/bin/sh

INITFILE="US_Recon"
INITDIR="/var/opt/l2/CSN1/ap21"
TMPDIR="/var/opt/sap2bn/out/CSN1/ap21/tmp"
ARCHDIR="/var/opt/l2/CSN1/ap21"
FINALDIR="/var/opt/sap2bn/out/CSN1/ap21"
ARCHPER="31"
TIMESTAMP="_MMDDCCYY.xml"

/var/opt/l2/bin/archiveNx ${INITFILE} ${INITDIR} ${TMPDIR} ${ARCHDIR} ${FINALDIR} ${ARCHPER} ${TIMESTAMP}

In this do I use the whole script to archive a file or just the last command i.e. archiveNx to archive the file? If I use only the archiveNx command then should it come before the file name or after the file name.

Thanks a lot.

Regards,
Indira
Reply With Quote
Google The UNIX and Linux Forums
Forum Sponsor
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 12:16 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0