Sponsored Content
Operating Systems Solaris How to add multiple tar file to a script Post 302160906 by vikashtulsiyan on Wednesday 23rd of January 2008 04:27:16 AM
Old 01-23-2008
How to add multiple tar file to a script

I have appended a tar file to my installation script so that while installing i can unzip from there (specifying the starting line number) and install a package.

This work fine if i add one tar file. But suppose i have to install different packages depending on the platform the script is run. i appended different tar files to the script so that depending on the system platform i can install different scripts. Problem is this is not working. Smilie
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

find multiple file types and tar

There are these ksh files and config files that are written and updated on a daily basis. All I want to do is write a script that finds both these types of files and archive them on a daily basis, to help in restoring in times of system outages and so on. Particulary I'm interested in .ksh ,... (9 Replies)
Discussion started by: manthasirisha
9 Replies

2. Shell Programming and Scripting

bash - batch script for extracting one file from multiple tar files

so i have hundreds of files named history.20071112.tar (history.YYYYMMDD.tar) and im looking to extract one file out of each archive called status_YYYYMMDDHH:MM.lis here is what i have so far: for FILE in `cat dirlist` do tar xvf $FILE ./status_* done dirlist is a text... (4 Replies)
Discussion started by: kuliksco
4 Replies

3. UNIX for Advanced & Expert Users

How to create a Tar of multiple Files in Unix and FTP the tar to Windows.

Hi, On my Unix Server in my directory, I have 70 files distributed in the following directories (which have several other files too). These files include C Source Files, Shell Script Source Files, Binary Files, Object Files. a) /usr/users/oracle/bin b) /usr/users/oracle... (1 Reply)
Discussion started by: marconi
1 Replies

4. UNIX for Dummies Questions & Answers

how to add files to an existing tar file - HP-UNIX

Hello, What is the command to add files to an existing tar file. Thanks, (5 Replies)
Discussion started by: Nomaad
5 Replies

5. Shell Programming and Scripting

Add directory to TAR file whitout files.

Hi, What I'm trying to do is rather easy to explain, but I don't know if it's possible. The main idea is that I have directories which I want to add to a TAR file, but for some of them I don't want to include the files in the directory. I just want to add the path to the TAR file as if the... (5 Replies)
Discussion started by: wisobe
5 Replies

6. UNIX for Dummies Questions & Answers

tar -cvf test.tar `find . -mtime -1 -type f` only tar 1 file

Hi all, 4 files are returned when i issue 'find . -mtime -1 -type f -ls'. ./ora_475244.aud ./ora_671958.aud ./ora_934052.aud ./ora_934050.aud However, when I issued the below command: tar -cvf test.tar `find . -mtime -1 -type f`, the tar file only contains the 1st file -... (2 Replies)
Discussion started by: ahSher
2 Replies

7. Shell Programming and Scripting

check a file is exists in multiple tar file?

I have list of ‘tar' format files in a folder. I want to check a particular file is exists in the tar files. Currently I am using the below command to check the scenario. tar -tvf first.tar | grep ‘myfile.txt' The command able to searched a single ‘tar' file only. But I want to search... (7 Replies)
Discussion started by: k_manimuthu
7 Replies

8. Shell Programming and Scripting

tar command to explore multiple layers of tar and tar.gz files

Hi all, I have a tar file and inside that tar file is a folder with additional tar.gz files. What I want to do is look inside the first tar file and then find the second tar file I'm looking for, look inside that tar.gz file to find a certain directory. I'm encountering issues by trying to... (1 Reply)
Discussion started by: bashnewbee
1 Replies

9. UNIX for Dummies Questions & Answers

UNIX command to check if file name ends with .tar OR if the file is a tar file

Hello Team, Would you please help me with a UNIX command that would check if file is a tar file. if we dont have that , can you help me with UNIX command that would check if file ends with .tar Thanks in advance. (10 Replies)
Discussion started by: sanjaydubey2006
10 Replies

10. Shell Programming and Scripting

Script to tar/rsync/rm multiple folder names

hi all, i attach a link with what im trying to do automatically via script but i have some questions i need answering please, bear in mind i am really new to bash scripting, the only thing i know how to do is commands in scripts like cd rm tar rsync cp stuff like that i have mutiple project... (48 Replies)
Discussion started by: robertkwild
48 Replies
CheckInstall(8) 					      System Manager's Manual						   CheckInstall(8)

NAME
checkinstall -- Track installation of local software, and produce a binary manageable with your package management software. SYNOPSIS
checkinstall [options] [install command] DESCRIPTION
checkinstall is a program that monitors an installation procedure (such as make install, install.sh ), and creates a standard package for your distribution (currently deb, rpm and tgz packages are supported) that you can install through your distribution's package management system (dpkg, rpm or installpkg). Note that for most useful actions, checkinstall must be run as root. OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes ('-'). A summary of options is included below. All the options that toggle a switch default to activate the option. To force activation or deactivation, call them with '=yes' or '=no'. As an example, to disable stripping use --strip=no. -h --help Show summary of options. --version Show version information. --copyright Show Copyright information --type Choose packaging system. Can be one of 'slackware', 'debian' or 'rpm'. -D Create a Debian package. -R Create a RPM package. -S Create a Slackware Package. --install Toggle installation of the created package. --fstrans Enable/disable filesystem translation. Filesystem translation enabled causes the install to proceed in a temporary directory, thus not actually touching your system. -y --default Accept default answers to all questions. --pkgname Set the package name. --pkgversion Set package version. -A --arch --pkgarch Set package architecture. --pkgrelease Set the package release. --pkglicense Set package license. --pkggroup Set the package group. --pkgsource Set source location --pkgaltsource Set alternate source location --pakdir Where to save the new package. --maintainer Set the package maintainer. Be careful to correctly quote/escape the name, to prevent shell expansion --provides Features provided by this package (currently only on RPM and Deb). --requires Dependencies required by this package. --rpmflags Pass this flags to the rpm installer. --rpmi Use the -i flag when installing a rpm. --rpmu Use the -U flag when installing a rpm. --dpkgflags Pass this flags to the dpkg installer --spec Where the .spec file is located --nodoc Do not include documentation files. -d Set debug level. Must be one of 0, 1 and 2. -si Run an interactive install command --showinstall Toggle interactive install command. -ss Run an interactive Slackware installation script. --showslack Toggle interactive Slackware installation script. --autodoinst Toggle creation of a doinst.sh script. --strip Toggle stripping any ELF binaries found inside the package. --stripso Toggle stripping any ELF libraries (.so) found inside the package. --addso Search for any shared libs and add them to /etc/ld.so.conf --reset-uids Reset perms for all files/dirs to 755 and the owner/group for all dirs to root.root --gzman Compress any man pages found inside the package. --docdir Where to put documentation files. --umask Set the umask value. --exclude Exclude these files/directories from the package. --include Force the inclusion in the package of the files/dirs listed in the argument (a file). --inspect Inspect the package's file list --review-spec Review the spec file before creating a .rpm. --review-control Review the control file before creating a .deb. --newslack Use the new (8.1+) Slackware description format ("--newslack" implies "-S") --with-tar Manually set the path to the tar binary. --deldoc Toggle deletion of doc-pak upon termination. --deldesc Toggle deletion of description-pak upon termination. --delspec Toggle deletion of spec file upon termination. --bk Backup any overwritten files --backup Toggle backup FILES
This program reads its configuration from /etc/checkinstallrc, which can be used to override defaults. Command line arguments override settings in the configuration file. AUTHOR
This manual page was written by Felipe Sateler <fsateler@gmail.com> for the Debian system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. CheckInstall(8)
All times are GMT -4. The time now is 04:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy