Exforsys

Free Training

To run my Shell

This is a discussion on To run my Shell within the Shell Programming forums, part of the Operating Systems category; I have a small shell script named as test.sh which I wanted to run. But when I give sh test.sh ...

Go Back   Exforsys > Operating Systems > Shell Programming

Exforsys.com

  #1 (permalink)  
Old 05-08-2007, 04:52 PM
Senior Member
 
Join Date: Apr 2006
Posts: 144
caradoc is on a distinguished road
To run my Shell

I have a small shell script named as test.sh which I wanted to run. But when I give
sh test.sh
It is not working.
I am sure there is nothing wrong in this shell script because I could run it by using . ./test.sh
Why is it not running in my previous case?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 06-13-2007, 03:53 AM
Junior Member
 
Join Date: Jun 2007
Posts: 8
psiva_exforsys is on a distinguished road
To run a shell script

to run the shell script in unix prompt before that we should change the file mode to rwx for ugo using chmod 777 <filename.extn>. and other things if you wnat run a korn shell then you simply run the script using shellscriptname with extension (eg: sample.ksh) and in borne shell you can run the script using sh shellscript name with extenstion (eg : sh sample.sh).
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

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


Similar Threads

Thread Thread Starter Forum Replies Last Post
[gnu.bash.bug] BASH Frequently-Asked Questions (FAQ version 3.26) Chet Ramey Tech FAQ 0 05-27-2004 11:00 AM
Scsh (a Unix Scheme shell) FAQ Michel Schinz Tech FAQ 0 05-13-2004 04:30 AM
[gnu.bash.bug] BASH Frequently-Asked Questions (FAQ version 3.26) Chet Ramey Tech FAQ 0 04-26-2004 11:00 AM
Motif FAQ (Part 4 of 9) Ken Lee Tech FAQ 0 04-18-2004 09:54 AM
Scsh (a Unix Scheme shell) FAQ Michel Schinz Tech FAQ 0 04-13-2004 04:30 AM


All times are GMT -4. The time now is 12:43 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0
Copyright 2004 - 2009 Exforsys Inc. All rights reserved.