Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'troubeshooting! mr. wolf :)' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
troubeshooting! mr. wolf :)
Authored by: zeorge on Sep 22, '03 05:45:24AM
hi, sorry to cause you the troubles ...

1. in the last paragraph there is this line: it is important that between the opening bracket (") and is only one character: a tab! this is the line:
if [ ! "$nss" = "[tab]NSServices" ]; then

2. the whole thing must be unix-textencoded! you can do this with a texteditor like bbedit or as described somewhere in this thread use perl -pi -e 's/\r/\n/g' /bin/nss. i ask rob to correct this in the download link so you maybe dont have to correct this anymore. check the correct encoding with cat /bin/nss, if you see only one line its wrongly mac encoded!

maybe better don't use textedit to copy/paste/save the script. download (save as) directy from the browser to the computer. this should work as soon rob corrected the download. (check the encoding)
or use pico in the terminal to copy/paste/save the script!

greetings, zeorge

[ Reply to This | # ]
The download file...
Authored by: robg on Sep 22, '03 07:14:48AM
If you copied and pasted into TextEdit, you'd get the line ending problem. To avoid it, use BBEdit in UNIX line ending mode, or just paste directly into a UNIX text editor like vi or pico or emacs.

However, there was a problem with the missing TAB character. I have now fixed that, and made a new download file: nss.sit [2kb] that fixes the issue. Just expand the archive, put it in the right directory, make it executable, type rehash, and you're good to go -- I tested with the downloaded file, and it worked perfectly.

-rob.

[ Reply to This | # ]
Worth the wait...
Authored by: sdt on Sep 22, '03 02:44:27PM

Works like a dream now. Thanks for a v. handy script.



[ Reply to This | # ]