All of lore.kernel.org
 help / color / mirror / Atom feed
* Program-invoking Symbolic Links?
@ 2004-08-05 14:04 John M Collins
  2004-08-05 14:34 ` William Stearns
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: John M Collins @ 2004-08-05 14:04 UTC (permalink / raw)
  To: linux-kernel

(Please CC any reply to jmc AT xisl.com as I'm not subbed - thanks).

I wondered if anyone had ever thought of implementing an alternative form of 
symbolic link which was in fact an invocation of a program?

Such a symbolic link would "do all the necessary" to fork off a new process 
running the specified program with input or output from or to a pipe 
depending on whether the link was opened for writing or reading respectively. 
RW access would probably have to be banned and the link would usually be 
read-only or write-only.

What I originally wanted was symbolic links (with "=>" as a possible 
notation).

latest_version.tar => "tar cf - /latest/and/greatest"
latest_version.tgz => "gzip -c latest_version"

and the like, which I could link on a website so I didn't have to run around 
updating tar files/zip files/gzipped tar files etc each time I fix a bug in 
some package.

Such a scheme would let you implement things like hit counts on web sites "for 
free" without you having to rush out and run a CGI program as at present.

Obviously, a whole lot of semantics and options for signal handling $PATH name 
search etc would have to be built into the kernel (or possibly handled like 
ld-nnn.so), but the idea would seem to me to close one arguable "lack of 
orthogonality" between files and pipes.

You could argue that /proc is halfway there - I'd just like a user-specific 
version.

-- 
John Collins Xi Software Ltd www.xisl.com

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-08-12 21:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-05 14:04 Program-invoking Symbolic Links? John M Collins
2004-08-05 14:34 ` William Stearns
2004-08-05 15:08   ` John M Collins
2004-08-05 16:45 ` viro
2004-08-05 17:34   ` Måns Rullgård
2004-08-05 17:57     ` viro
2004-08-05 18:30       ` Måns Rullgård
2004-08-07 12:26       ` V13
2004-08-05 18:02 ` Rik van Riel
2004-08-07 16:17 ` Eric Lammerts
2004-08-12 21:02   ` Pavel Machek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.