Some time after uploading some .sh (script) files from Windows to Unix environment, when we tried to run teh scripts as show nbelow we may end up in facing some errors as below ...
bash-3.00# pwd
/kbabu/builds/build_tl1tsm
bash-3.00# ls
INSTALL OMNIbus-v7.2.1-solaris2-5.11.18.tar tl1tsm-5.3.2-sun.sh
OMNIbus-v7.2.1-solaris2-5.11.18.jar packages
bash-3.00# ./tl1tsm-5.3.2-sun.sh
: bad interpreter: No such file or directory
bash-3.00# sh tl1tsm-5.3.2-sun.sh
tl1tsm-5.3.2-sun.sh: ^M: not found
tl1tsm-5.3.2-sun.sh: ^M: not found
tl1tsm-5.3.2-sun.sh: ^M: not found
tl1tsm-5.3.2-sun.sh: ^M: not found
tl1tsm-5.3.2-sun.sh: {^M: not found
Installation aborted. Cleaning up, please wait...
bash-3.00#
So the solution for this kind of problems is .. as below
Its something to do with cr/lf characters when u ftp'd the binary
just execute the following command followed by the file name ..
perl -i -pe's/\r$//;'
Ex: perl -i -pe's/\r$//;'
and hit enter.
sol2 : perl -e '%s/^M//'
It will fix your problem
Reactions: |
0 comments to "Facing error like this ? : bad interpreter: No such file or directory"
Tags
Powered by WidgetsForFree
Archives
-
▼
2008
(132)
-
▼
November
(14)
- Mayhem in Mumbai - Nov 26, 2008 to Nov 29, 2008
- where is ldd installed in HP unix?
- Customs in work ..found in eenadu daily
- How to replace esacape(\n \t) charecters and ' cha...
- Facing error like this ? : bad interpreter: No suc...
- Educational blog Award ... For making everyone aro...
- Acts can win the hearts ...Friend
- where can I find pmon, smon ...oracle services in ...
- If love becomes marriage ?? ( ప్రెమే పెళ్ళయుతే ?? ...
- Harivarasanam ... song meaning and Mp3 downlaod
- How to see hardware details like name and type of ...
- Solaris 10 Zones Vs Solaris 10 physical server
- Ayyappa Deeksha - Required things - Total ayyappa ...
- యువతా!!! బ్లాగ్ అంటె?( Youth!!! blog means? ) - In...
-
▼
November
(14)

My Blog List
Popular posts
- Airtel and vodafone GPRS settings for pocket PC phones
- Andhra 2 America
- Ayyappa Deeksha required things
- Blogs I watch !
- Captions for your bike
- DB2 FAQs
- Deepavali Vs The Goddes of sleep
- ETV - Dhee D2 D3
- Evolution of smoking in India Women
- How to make credit card payments?
- Java-J2EE interview preparation
- My SQL FAQs
- My Travelogues
- Old is blod - New is italic
- Online pay methids for credit cards
- Oracle FAQs
- Pilgrimages
- Smoking in Indian Women
- Technology Vs Humans
- Twitter feeds for all Telugu stars on single page.
- Unix FAQs
- Unix best practices
- init 0, init 1, init 2 ..
- mCheck Application jar or jad download

Post a Comment
Who ever writes Inappropriate/Vulgar comments to context, generally want to be anonymous …So I hope U r not the one like that?
For lazy logs u can at least use Name/URL option which don’t even require any sign-in, good thing is that it can accept your lovely nick name also and URL is not mandatory too.
Thanks for your patience
~Krishna(I love "Transparency")
వీలయితే నాల్గు పోస్టులు ...కుదురితే ఒక కామెంటూ ...