Page 1 of 1
Can't run patch command in SSH
Posted: Sat Jul 07, 2012 6:16 am
by dibble
I am trying to execute a security patch from SSH and find that the 'patch' command isn't being found. Is there an explicit path I need to prepend to it, or is it just not available?
-dib
Re: Can't run patch command in SSH
Posted: Sun Jul 08, 2012 3:29 pm
by thulsa_doom
On shell.sonic.net:
$ which patch
/usr/bin/patch
and
$ patch --version
patch 2.5.4
Copyright 1984-1988 Larry Wall
Copyright 1989-1999 Free Software Foundation, Inc.
This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of this program
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
written by Larry Wall and Paul Eggert
Re: Can't run patch command in SSH
Posted: Sun Jul 08, 2012 7:01 pm
by dibble
I think not:
-bash-4.1$ /usr/bin/patch
-bash: /usr/bin/patch: No such file or directory
-dibble
Re: Can't run patch command in SSH
Posted: Sun Jul 08, 2012 7:57 pm
by thulsa_doom
Ah, this must be for a custom hosting setup. My apologies. I'll defer to our systems folks, then. I don't see it in the path on my custom hosting, either.
Re: Can't run patch command in SSH
Posted: Sun Jul 08, 2012 8:29 pm
by dibble
Yes, is it a custom hosting installation.
Here is the which result:
-bash-4.1$ which patch
/usr/bin/which: no patch in (/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin)
Re: Can't run patch command in SSH
Posted: Mon Jul 09, 2012 4:10 pm
by dibble
I have personal website hosting on a different Sonic account. Since the 'patch' command is available there, I will create a dummy install of the package I need to patch, run the patch command to update the affected files, then manually compare/install those files back to the custom web hosting installation.
It's a clunky solution. I'd rather be able to run patches on the custom hosting system. Why is 'patch' available on personal hosting and not custom hosting?
dib
Re: Can't run patch command in SSH
Posted: Tue Jul 10, 2012 10:07 am
by joemuller
I've taken the opportunity to install 'patch' on your Custom Hosting. I'm not sure the exact reason why that utility isn't installed by default, but the reason why this isn't a problem on Personal Hosting is because our web cluster is running a different distribution.
Re: Can't run patch command in SSH
Posted: Tue Jul 10, 2012 4:57 pm
by dibble
The patch command is available now; I've performed the patch and backed out the workaround.
dib