Unix/Linux Go Back    

Shell Programming and Scripting BSD, Linux, and UNIX shell scripting — Post awk, bash, csh, ksh, perl, php, python, sed, sh, shell scripts, and other shell scripting languages questions here.

Script used to create another script

Shell Programming and Scripting

Thread Tools Search this Thread Display Modes
Old Unix and Linux 01-19-2013
Junaid Subhani Junaid Subhani is offline
Registered User
Join Date: Aug 2012
Last Activity: 2 August 2017, 11:39 AM EDT
Posts: 191
Thanks: 53
Thanked 2 Times in 2 Posts
Wrench Script used to create another script

Hi guys .

I want to create a script for POST INSTALLATION for new machines being deployed in my Data Center.
I want to create a script post_install.sh that further creates a new script(s) that are essential for system connectivity e.g. mails etc to other systems.

How can I achieve this ?

Sponsored Links
Old Unix and Linux 01-19-2013
vbe's Unix or Linux Image
vbe vbe is offline Forum Staff  
Join Date: Sep 2005
Last Activity: 22 October 2017, 4:06 AM EDT
Location: Switzerland - GE
Posts: 6,471
Thanks: 288
Thanked 551 Times in 513 Posts
I dont know how you expect your script to be intelligent enough to guess what to put in it ... And if you know you want in it what is stopping you to write the script and call the second from the first.
If because you are missing values that come from the first then it is just a question of passing them as argument to the second
Sponsored Links

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
CGI Perl script to execute bash script- unable to create folder rakeshkumar Programming 0 07-19-2012 03:10 AM
Bash: How can a script create a script? LessNux Shell Programming and Scripting 3 03-06-2012 09:30 AM
Help Create dynamic ksh script from a script pcpinkerton Shell Programming and Scripting 0 02-19-2012 12:42 PM
Create script to add user and create directory pbhound Homework & Coursework Questions 12 04-01-2011 09:02 AM
create a shell script that calls another script and and an awk script magikminox Shell Programming and Scripting 0 06-26-2008 02:50 AM

All times are GMT -4. The time now is 08:04 AM.