nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

sh is not working

This is a discussion on sh is not working within the Linux software forums, part of the Linux Getting Started category; hi whenever i want to execute ant .bin or .sh file in my RHEL4 this massage is shown "bad interpreter: ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 07-16-2008, 01:44 PM
Junior Member
User
 
Join Date: Jul 2008
My distro: RHEL4
Posts: 2
Rep Power: 0
ritsri is on a distinguished road
Cool sh is not working

hi

whenever i want to execute ant .bin or .sh file in my RHEL4 this massage is shown
"bad interpreter: No such file or directory"

please help me
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-16-2008, 01:48 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,036
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

what is the output of following
Code:
which sh
Usually you need to type
Code:
sh file.bin
sh script.sh
OR
Code:
chmod +x script.sh
./script.sh
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #3 (permalink)  
Old 07-16-2008, 02:27 PM
Junior Member
User
 
Join Date: Jul 2008
My distro: RHEL4
Posts: 2
Rep Power: 0
ritsri is on a distinguished road
Default reply

output of which sh is /bin/sh
Reply With Quote
  #4 (permalink)  
Old 07-16-2008, 05:49 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Ubuntu
Posts: 1,036
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

Then you have sh installed. You need to type the full path, for example /home/vivek/script.sh can be executed by typing
Code:
sh /home/vivek/script.sh
or
Code:
cd /home/vivek
sh ./script.sh
__________________
Vivek | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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
working on Open NMS sushsapy Linux software 4 07-13-2008 04:26 PM
Bash not working! Mwalimugini Getting started tutorials 4 03-24-2008 10:52 PM
logrotate not working muks Web servers 2 03-17-2007 05:50 AM
Is NTP Working? illtestu Linux software 1 05-22-2006 11:36 PM
iptables bittorrent not working Linux software 2 01-25-2006 08:52 PM


All times are GMT +5.5. The time now is 09:32 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36