Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] /bin/bash^M: zły interpreter: Nie ma takiego pliku
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) Polish OTW
View previous topic :: View next topic  
Author Message
soban_
l33t
l33t


Joined: 27 Aug 2008
Posts: 679
Location: /home/soban

PostPosted: Sat Jul 09, 2011 4:22 pm    Post subject: [SOLVED] /bin/bash^M: zły interpreter: Nie ma takiego pliku Reply with quote

Mam nastepujacy problem:
Quote:
localhost xe # ./install-xe-guest-utilities.sh
-bash: ./install-xe-guest-utilities.sh: /bin/bash^M: zły interpreter: Nie ma takiego pliku ani katalogu
Kodowanie to UTF-8 i tym najprawdopodobniej ten blad jest spowodowany (magiczne entery o ile dobrze wygooglowalem). Czy istnieje jakis prosty sposob na naprawienie tego? Probowalem juz z "sh .inst..." ale:
Code:
localhost xe # sh install-xe-guest-utilities.sh
: nie znaleziono polecenia.sh: line 31:
: nie znaleziono polecenia.sh: line 33:
: nie znaleziono polecenia.sh: line 35:
: nie znaleziono polecenia.sh: line 39:
: nie znaleziono polecenia.sh: line 40:
install-xe-guest-utilities.sh: line 65: błąd składni przy nieoczekiwanym znaczni'u `{
'nstall-xe-guest-utilities.sh: line 65: `PrintHelp() {
Tutaj podaje skrypt ktory probuje uruchomic. Ma ktos pomysl, jak to naprawic?
_________________
gg: 525600


Last edited by soban_ on Sat Jul 09, 2011 6:18 pm; edited 1 time in total
Back to top
View user's profile Send private message
mziab
l33t
l33t


Joined: 01 Oct 2004
Posts: 638

PostPosted: Sat Jul 09, 2011 6:07 pm    Post subject: Reply with quote

Code:
emerge dos2unix
dos2unix install-xe-guest-utilities.sh

_________________
Gentoo Linux 13.0 | 3.14.0 | glibc 2.17 | gcc 4.8.2

mteam | mziab's blog | roslin
Back to top
View user's profile Send private message
soban_
l33t
l33t


Joined: 27 Aug 2008
Posts: 679
Location: /home/soban

PostPosted: Sat Jul 09, 2011 6:18 pm    Post subject: Reply with quote

Dzieki, tez mozna uzyc:
Code:
autounmask =app-text/tofrodos-1.7.9 //jesli bedzie marudzic z tym nizej
emerge app-text/tofrodos
fromdos install-xe-guest-utilities.sh
Pozdrawiam i przepraszam za zamieszanie ; )
_________________
gg: 525600
Back to top
View user's profile Send private message
SlashBeast
Moderator
Moderator


Joined: 23 May 2006
Posts: 2824

PostPosted: Sat Jul 09, 2011 6:34 pm    Post subject: Reply with quote

Ja bym tam uzyl seda, badz tr.

Code:
sed 's/^M$//g' foo.sh -i

Code:
< zrodlo tr -d '\r' > output.sh

_________________
BitBucket -- better-initramfs to address many usecases and linux's limitations.
Back to top
View user's profile Send private message
soban_
l33t
l33t


Joined: 27 Aug 2008
Posts: 679
Location: /home/soban

PostPosted: Sat Jul 09, 2011 9:10 pm    Post subject: Reply with quote

No w sumie sensowniejsze rozwiazanie bo nic nie trzeba doinstalowywac. W kazdym badz razie, dzieki za pomoc - [SOLVED] : )
_________________
gg: 525600
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) Polish OTW All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum