The UNIX and Linux Forums  


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
need to invoke a shell script from xml file. sais UNIX for Dummies Questions & Answers 2 05-19-2008 02:01 PM
how to Invoke html in ksh Script ali560045 Shell Programming and Scripting 4 11-30-2007 01:28 AM
Bourne: How to invoke an alias from within a shell script techshots Shell Programming and Scripting 2 06-04-2006 01:38 AM
invoke same script twice mpang_ Shell Programming and Scripting 2 04-05-2006 07:14 AM
Invoke java program in script mpang_ Shell Programming and Scripting 0 03-27-2006 11:05 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-30-2005
gopa_mani gopa_mani is offline
Registered User
  
 

Join Date: Dec 2005
Posts: 1
how to invoke shell script

hi everybody,
i learning unix now only.Can u pls guide me in invoking a shell script.Actually i need to know how to write the command for invoking the shell script.Suppose the shell file name is count , then how i will write the command.

thanks
  #2 (permalink)  
Old 12-30-2005
rahulrathod rahulrathod is offline
Registered User
  
 

Join Date: Sep 2004
Location: Mumbai-India
Posts: 158
different ways to do it

You should make your shell script file executable first.

$chmod 755 count

You can run it from the directory where it is located as follows.

$./count


One more way execute it as a paramter to the sh command. If you are in a different directory make sure to provide the complete path.

$sh /home/user/count
Closed Thread

Bookmarks

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 03:20 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
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