Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I need to put sendmail in a different directory

Status
Not open for further replies.

Cadwalader

IS-IT--Management
Feb 12, 2002
297
US
I moved an entire website to another server, RedHat 7.2 running Apache 1.3.22(it's a full-blown, rack mounted dark gray thing in a big black cabinet). This website has a cgi script that is over 5300 lines long written in Perl. I finally got "most" of it working. At first I would just get the 404 error, and then I messed with httpd, and allowed the cgi's and .pl's to run, then the errors started to change. I eventually found that the permissions were set wrong. I took care of that. Almost all is good...

This script assumes that sendmail is located /usr/bin/sendmail and it's not on this server. Sendmail is located in /usr/sbin/sendmail.

I don't know squat about perl, and not much about the cgi venue. I looked for a refernece to /usr/bin/sendmail and couldn't find it (in that huge perl script). What I need to do, and I think it will be the simplest way, is to put sendmail in /usr/bin/ but then what if other things are pinting to /usr/sbin/ for sendmail? Is there something I could put in /usr/bin/ to point to /usr/sbin/sendmail when that script calls for it, kinda like a shortcut in Windows?

Thanks for the help...:)
Hope I was of some help...
--OR--
Thanks for the help...
--Rich

 
Did you check to see that sendmail is installed?
To create a symlink -> "shortcut":
ln -s source dest.
man ln , ln --help, are your friends.
 
Hey, thanks. I actually found where that script references sendmail and changed it. It's werkin fine now. thanks fo rthe info...:) Hope I was of some help...
--OR--
Thanks for the help...
--Rich

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top