LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-28-2014, 01:53 PM   #1
ASTRAPI
Member
 
Registered: Feb 2007
Posts: 210

Rep: Reputation: 16
Question How to automate installation commands?


Hello

I want to ask please how can i automate the commands that i run on Centos to install some software like:

Code:
wget linkhere
tar -xzf file.gz
chmod +x file.sh
blablabla

I want to create a file that will have all the commands inside and when i run it from the terminal to get all what i want ready to use..... and not to have run every command by hand?

Thank you
 
Old 04-28-2014, 01:58 PM   #2
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,208

Rep: Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611
Here is a simple how-to on creating a shell script, which is what you are looking for.

http://www.linfo.org/create_shell_1.html

Please read it carefully, and follow the example. Once you have read it and completed the example, you will be able to turn your command list into a script that is executable.
 
1 members found this post helpful.
Old 04-28-2014, 02:02 PM   #3
ASTRAPI
Member
 
Registered: Feb 2007
Posts: 210

Original Poster
Rep: Reputation: 16
Ok thanks but i am looking for something more advance than that with some sleep, sed commands and so on
 
Old 04-28-2014, 02:07 PM   #4
szboardstretcher
Senior Member
 
Registered: Aug 2006
Location: Detroit, MI
Distribution: GNU/Linux systemd
Posts: 4,208

Rep: Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611Reputation: 1611
No problem. But looking at your post, you did not request that.

You can certainly follow that guide, and put some sleep and sed commands into the script as well.

What is it that you are actually trying to do? And where are you in the process of doing it? Please explain.
 
Old 04-28-2014, 03:33 PM   #5
ASTRAPI
Member
 
Registered: Feb 2007
Posts: 210

Original Poster
Rep: Reputation: 16
When i setup my web server i am just installing some software (a lot) and i am thinking to do it automatically
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
automated installation with perl? larsmw Linux - General 3 05-22-2011 03:25 PM
Automated slackware installation Josephus Ross Programming 5 03-09-2007 04:01 AM
Would an Automated Installation process Help? Kannies Linux - Software 1 12-28-2005 09:48 AM
Automated startup commands? ThePenguin Linux - Software 6 09-05-2004 10:56 AM
Automated installation Megiddo Linux - Newbie 7 05-20-2004 03:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration