How to distribute many scripts as one big fille ??


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to distribute many scripts as one big fille ??
# 1  
Old 11-18-2010
Question How to distribute many scripts as one big fille ??

Hi

I'm building an application where-in I have many ksh + expect scripts all working together to achieve one objective. There is one main script which calls upon the other smaller scripts to do their jobs and then go off.

My trouble is , I do not know how to package (if that's reasonable) all the scripts into one so that I can easily distrtibute them to the end-users.

Will 'make' utility do me any good Smilie

Thanks in advance

chinmayee
# 2  
Old 11-18-2010
look into tar
# 3  
Old 11-18-2010
some possibilities using an archiver:

1. create a tar file that has all of them, and when extracted puts eveything in a single known directory.
2. create a zip archive (not gzip)
3. pax archive

You will also need a short "install" script to set ownership and permissions on the files once they are extracted, plus a README file to tell folks how unpack the archive and then to run the install script.
This User Gave Thanks to jim mcnamara For This Post:
# 4  
Old 11-18-2010
thanks jim and vgresh99
# 5  
Old 11-18-2010
A nice tool to combine archive and install script in one file is makeself. See: makeself - Make self-extractable archives on Unix
This User Gave Thanks to hergp For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Adding users from a txt fille

hello i'm making a bash script for adding users from a txt fille i have a basic script that adds users and their password . when you type the users by hand , now i want to upgrade my script with a txt file of users and their password , but i don't know how to start . my txt file looks... (10 Replies)
Discussion started by: Roggy
10 Replies

2. Red Hat

Distribute packages to other client machines using yum

Hi, We have a 2 yum repository servers (2.6.18-92.el5 x86_64 x86_64 x86_64 GNU/Linux) that are RHN registered and should receive the latest patch/packages. The servers are configured somehow that the new updates are not downloaded automatically which I guess is in the yum-updatesd.conf file ... (3 Replies)
Discussion started by: jamba1
3 Replies

3. Shell Programming and Scripting

Read Variable From Fille And Convert it to Integer

I read 3 variables from from Inputfile.txt the third one "startnumber" is a number when i compare it with 9 ($startnumber -le 9) it give's me a "unary operator expected", i know that -le is for number comparison. What i need is to convert $startnumber to integer (i have try to do it with expr but... (8 Replies)
Discussion started by: marios
8 Replies

4. UNIX for Dummies Questions & Answers

How to distribute compressed files as text?

Hello everybody, I've seen some text documents where they publish blocks of text and tell you to save it as "file.tgz" for example, and when you decompress the file, it actually works. How is that done? is there a program? Because i tried cat and doesn't work, tried less, more, hexedit and... (2 Replies)
Discussion started by: semash!
2 Replies

5. News, Links, Events and Announcements

Sun starts to distribute Ubuntu Linux

Reference Sun starts to distribute Ubuntu Linux Posted by Matt Asay (0 Replies)
Discussion started by: Neo
0 Replies

6. AIX

How to distribute paging space among multiple PV

Greetings I have an older box (H50) that has it's paging space setup the following way: $ lsps -a Page Space Physical Volume Volume Group Size %Used Active Auto Type paging00 hdisk0 rootvg 224MB 1 yes yes lv hd6 hdisk0 ... (4 Replies)
Discussion started by: outtacontrol
4 Replies

7. UNIX for Dummies Questions & Answers

How to view a big file(143M big)

1 . Thanks everyone who read the post first. 2 . I have a log file which size is 143M , I can not use vi open it .I can not use xedit open it too. How to view it ? If I want to view 200-300 ,how can I implement it 3 . Thanks (3 Replies)
Discussion started by: chenhao_no1
3 Replies

8. News, Links, Events and Announcements

Distribute Master's Thesis Under GPL?

What does everyone think about distributing a Master's thesis under the GPL? If this license is not appropriate, is there a corresponding license which offers the same thing for documents? (0 Replies)
Discussion started by: chenly
0 Replies
Login or Register to Ask a Question