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


Click here to return to the 'Disable didtheyreadit.com email tracking bugs' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Disable didtheyreadit.com email tracking bugs
Authored by: blalor on May 26, '04 10:57:57AM

That won't work, but for a different reason than the first commenter said. /etc/hosts is consulted on Panther. The command won't work because sudo runs echo as root, but your shell (as you) handles the >> part, trying to append to the file as a non-root user. Just use vi to add that line to the file.



[ Reply to This | # ]
Disable didtheyreadit.com email tracking bugs
Authored by: rocteur on May 26, '04 11:35:50AM

Beautiful blabor!

It is a pity that most people do not learn to use the shell!!

And of course, people posting hints who have obviously not tried what they are posting.

And lastly, accepting the hint and not verifying that what the poster was posting was going to work..

Good job for picking that up!



[ Reply to This | # ]
sudo echo -- corrected
Authored by: gatorparrots on May 27, '04 02:42:46AM
Your statement is a bit misleading:
"sudo runs echo as root, but your shell (as you) handles the >> part"

For example:

$ sudo echo `whoami`   
gatorparrots

At any rate, the original hint should be corrected with the command below if one wants to append the host entry from the shell to avoid opening the hosts file in a text editor:

sudo sh -c 'echo "127.0.0.1 didtheyreadit.com" >> /etc/hosts'


[ Reply to This | # ]
sudo echo -- corrected
Authored by: Anonymous on May 30, '04 10:22:17PM

The actual explanation is that sudo invokes a subshell as root, and passes only it's first arg to that subshell to run.

Once the command finishes the subshell exits, and it's standard out is piped into >>. This attempts to open up and append to it's file argument as the original UID, which fails due to lack of privilege.

So, the solution is to pass the entire command line, including any redirects, so the whole thing is passed to sudo as one arg.

---
cm

[ Reply to This | # ]

sudo echo -- corrected
Authored by: pachisia on Jun 08, '04 01:28:46AM

I need some infor , how to disable the didtheyreadit thing. I am using outlook express and incredible mail as my mail clients . Please help .. and reply to pachisia@vsnl.com



[ Reply to This | # ]