> Can an SQL database (PostgreSQL) be connected to shell in a way that if
> a directory is changed on shell it will update the database with the
> changes? If so how?
> A prompt reply would be appreciated.
> Thank in advance,
That is tough. It is normally very difficult to trigger 'anything' if
someone changes a directory in their shell. It would have to be
triggered in the kernel, and out of the kernel up to an SQL process.
Their are Unix tools that monitor the everyone's current directory, but
they are polling tools, not some automatic thing on every directory
It is the chdir() kernel call you want to trigger on.
Bruce Momjian | 830 Blythe Avenue
maillist(at)candle(dot)pha(dot)pa(dot)us | Drexel Hill, Pennsylvania 19026
+ If your life is a hard drive, | (610) 353-9879(w)
+ Christ can be your backup. | (610) 853-3000(h)
In response to
pgsql-hackers by date
|Next:||From: geek+||Date: 1998-07-01 15:48:21|
|Subject: Re: [HACKERS] DB-shell connect|
|Previous:||From: The Hermit Hacker||Date: 1998-07-01 15:05:31|
|Subject: Re: your mail|