Thread
:
Can't get script executable
View Single Post
TA-t3
2009-03-23 , 12:27
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#
9
Have you tested your scripts manually, that is, from an xterm?
If they don't work, check that you have not accidentally created scripts with carriage return/line feed line endings instead of just line feed line endings. Shell scripts with cr/lf won't work.
If there are cr/lf line endings then the script can be fixed by passing it through 'tr -d "\r"', e.g. cat script.sh | tr -d "\r" > newscript.sh
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
Quote & Reply
|
TA-t3
View Public Profile
Send a private message to TA-t3
Find all posts by TA-t3