The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
URL call from SHELL script chengwei Shell Programming and Scripting 37 04-15-2009 09:52 PM
Call shell script from php not run ? raccsdl Shell Programming and Scripting 2 11-19-2007 08:21 AM
how can i call a shell script from pl/sql rajesh.P Shell Programming and Scripting 3 09-16-2007 11:09 PM
how can a call shell script from pl/sql rajesh.P UNIX for Dummies Questions & Answers 0 09-14-2007 02:42 AM
How to call a shell script from awk ? Amruta Pitkar Shell Programming and Scripting 1 04-20-2007 04:35 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 02-05-2008
anju anju is offline
Registered User
  
 

Join Date: Jan 2008
Location: Bangalore
Posts: 17
shell script to call other files..plz help

Hi all,
I have a number of shell script,perl script.. etc in a directory,which i need to execute in some order.Now i need to create a script to call all these files in that order..so that the new script will execute all the files one by one....plz help this is urgent.


Thanks In advance

Anju

Last edited by anju; 02-05-2008 at 02:07 AM..
  #2 (permalink)  
Old 02-05-2008
Yogesh Sawant's Avatar
Yogesh Sawant Yogesh Sawant is offline Forum Staff  
Part Time Moderator and Full Time Dad
  
 

Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 1,086
Whatever scripts you want to run, write them in a file - the way you would execute them at command line

Write them in the order in which you want to execute them

Your file may look like:
Code:
#!/bin/sh
script_01.sh
script_02.sh
script_03.pl
and then run the file (its basically another shell script) that you have created
  #3 (permalink)  
Old 02-05-2008
namishtiwari namishtiwari is offline Forum Advisor  
Registered User
  
 

Join Date: Aug 2007
Location: Bangalore
Posts: 377
Check out the permissions of the scripts,if they are not executable then change the permissions and run it as Yogesh suggested.
  #4 (permalink)  
Old 02-05-2008
Yogesh Sawant's Avatar
Yogesh Sawant Yogesh Sawant is offline Forum Staff  
Part Time Moderator and Full Time Dad
  
 

Join Date: Sep 2006
Location: Rossem, Tazenda
Posts: 1,086
Quote:
Originally Posted by namishtiwari View Post
Check out the permissions of the scripts,if they are not executable then change the permissions and run it as Yogesh suggested.
yes, and the first line in the scripts should begin with #! (something like #!/bin/bash or #!/usr/bin/perl - depending on the shell / language that you are using)
Sponsored Links
Closed Thread

Bookmarks

Tags
perl script, shell script

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 05:39 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0