OpenSolaris Solaris Forum  
     

Left Nav Register FAQ Members List Default Password Members List Linux Commands Search Today's Posts Mark Forums Read Right Nav

Left Container Right Container
 

Go Back   OpenSolaris Solaris Forum » Solaris General

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-01-2010, 11:16 AM
Unregistered
Guest
 
Posts: n/a
Default Shell script

i have a set of commands to be executed, which is working perfectly when executed from terminal but when its put in a shell script its not working. how do i resolve it
Reply With Quote
Sponsored Links

  #2 (permalink)  
Old 10-01-2010, 01:31 PM
Unregistered
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Unregistered View Post
i have a set of commands to be executed, which is working perfectly when executed from terminal but when its put in a shell script its not working. how do i resolve it
are the commands in script present in system path ?
what error do you get ?
Reply With Quote
  #3 (permalink)  
Old 10-01-2010, 02:13 PM
Unregistered
Guest
 
Posts: n/a
Default

Im getting file not found exception, even though it works perfectly when i execute line by line from terminal.
Reply With Quote
  #4 (permalink)  
Old 10-01-2010, 03:27 PM
Unregistered
Guest
 
Posts: n/a
Default

Quote:
Originally Posted by Unregistered View Post
Im getting file not found exception, even though it works perfectly when i execute line by line from terminal.
have you exported the the location of the file for which you are getting the error in $PATH ?
Reply With Quote
  #5 (permalink)  
Old 10-01-2010, 03:39 PM
Unregistered
Guest
 
Posts: n/a
Default

i havenot exported any specific files. But it works well when i execute the commands line by line from terminal
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may post new threads
You may 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
Shell script for password prompt JDK Solaris General 3 11-24-2011 02:00 PM
Default shell Change Unregistered Solaris Networking 1 07-05-2011 08:40 PM


All times are GMT. The time now is 01:41 PM.


Powered by vBulletin. Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.