Discussion:
What software uses /usr/bin/open?
(too old to reply)
Yeechang Lee
2016-02-16 23:57:30 UTC
Permalink
On RHEL/CentOS, /usr/bin/open is a symlink for /usr/bin/openvt. I'd
like to call a shell script I've written "open". What software, if
any, would break by having said script in ~/bin and having ~/bin first
in my path?

Obviously software that normally run as root or another user wouldn't
be affected, but things I run as my normal user login, or run with
sudo, would. I just don't know if there are any such; I do know that I
have never knowingly invoked open/openvt in 20 years of using Red Hat
Linux.
--
geo:37.783333,-122.416667
Jasen Betts
2016-02-17 11:54:09 UTC
Permalink
Post by Yeechang Lee
On RHEL/CentOS, /usr/bin/open is a symlink for /usr/bin/openvt. I'd
like to call a shell script I've written "open". What software, if
any, would break by having said script in ~/bin and having ~/bin first
in my path?
Why not put it in /usr/local/bin/open ?

Should alreasy be first in you path.

Otoh well written software will be using "/usr/bin/opevt" instead of
relying on $PATH and a symlink.
--
\_(ツ)_ Today's message brought to you by the letters L F and S.
Yeechang Lee
2016-02-17 17:58:36 UTC
Permalink
Post by Jasen Betts
Why not put it in /usr/local/bin/open ?
Should alreasy be first in you path.
I could put it there, but given that it is a "personal" script—that
is, of use only to me, and hardwired assuming such—~/bin is more
appropriate.
Post by Jasen Betts
Otoh well written software will be using "/usr/bin/opevt" instead of
relying on $PATH and a symlink.
This is my question; whether any such non well-written software exists
as stock (or from common other sources, like EPEL or CentOS Plus) for
RHEL/CentOS.
--
geo:37.783333,-122.416667
Jasen Betts
2016-02-20 02:01:50 UTC
Permalink
Post by Yeechang Lee
Post by Jasen Betts
Why not put it in /usr/local/bin/open ?
Should alreasy be first in you path.
I could put it there, but given that it is a "personal" script—that
is, of use only to me, and hardwired assuming such—~/bin is more
appropriate.
~/bin is a good solution ( I mis-read your suggestion as /bin )
Post by Yeechang Lee
Post by Jasen Betts
Otoh well written software will be using "/usr/bin/opevt" instead of
relying on $PATH and a symlink.
This is my question; whether any such non well-written software exists
as stock (or from common other sources, like EPEL or CentOS Plus) for
RHEL/CentOS.
Noobs write scripts like that every day, so it exists. but such low-
quality software is unlikely to be carried by a mainstream distro.
--
\_(ツ)_
Continue reading on narkive:
Loading...