On 11/10/19 9:37 PM, Caveman Al Toraboran wrote:
hi - is it possible to have some kind of fancy links that know the
name of the process that is trying to access it, and based on its name,
it links it to a file?
I've not heard of that specifically.
e.g. `ln -s X Y` will create link Y that
On Sun, Nov 10, 2019 at 11:37 PM Caveman Al Toraboran
wrote:
>
> i think if we have this, we can solve slotting in a simpler
> way. e.g. we install libs in their own non-conflicting
> locations, and then install for them such fancy sym links
> with access that routes accessing processes to the
On Sun, Nov 10, 2019 at 11:37 PM Caveman Al Toraboran
wrote:
>
> hi - is it possible to have some kind of fancy links that
> know the name of the process that is trying to access
> it, and based on its name, it links it to a file?
Yes, and that's used pretty extensively in busybox. Symlinks
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
Would this be a case for "ps"?
If you would like to know the PID of the process that calls your script you
could execute "ps -o
comm= $PPID"
https://pubs.opengroup.org/onlinepubs/009604499/utilities/ps.html
Rudi
November 11, 2019 5:34 PM,
On 11/11/19 12:38 PM, Walter Dnes wrote:
On Mon, Nov 11, 2019 at 04:37:17AM +, Caveman Al Toraboran wrote
hi - is it possible to have some kind of fancy links that
know the name of the process that is trying to access
it, and based on its name, it links it to a file?
Short answer...
On Mon, Nov 11, 2019 at 04:37:17AM +, Caveman Al Toraboran wrote
> hi - is it possible to have some kind of fancy links that
> know the name of the process that is trying to access
> it, and based on its name, it links it to a file?
Short answer... YES! Now convince the developers to use
On Monday, 11 November 2019 04:37:17 GMT Caveman Al Toraboran wrote:
> hi - is it possible to have some kind of fancy links that
> know the name of the process that is trying to access
> it, and based on its name, it links it to a file?
Yes, it's done all the time. Have a look at, e.g.,
hi - is it possible to have some kind of fancy links that
know the name of the process that is trying to access
it, and based on its name, it links it to a file?
e.g. `ln -s X Y` will create link Y that always refers to
X whenever anyone tries to access Y. but is it possible
to have a fancier
8 matches
Mail list logo