Re: [GENERAL] C functions, arguments, and ssh oh my!

2001-03-27 Thread Tom Lane
Joel Dudley <[EMAIL PROTECTED]> writes: > what it does with those is builds a command string for an external app that > is called with system() and exits 0. I know this is strange and ugly but I > need to trigger this external app when an insert is made into a user table. This seems an extremely

Re: [GENERAL] C functions, arguments, and ssh oh my!

2001-03-27 Thread Peter Eisentraut
Joel Dudley writes: > PG_FUNCTION_INFO_V1(ssh_exec); > > Datum > ssh_exec(PG_FUNCTION_ARGS) > { > char sshcmd[255]; > > strncpy(sshcmd, "/usr/local/bin/plsshexec ", 255); > strncat(sshcmd, *uname, 255); > strncat(sshcmd, " ", 255); > strncat(sshcmd, *uid, 2

Re: [GENERAL] C functions, arguments, and ssh oh my!

2001-03-27 Thread Alfred Perlstein
* Joel Dudley <[EMAIL PROTECTED]> [010327 11:29] wrote: > Hello All, > I am writing my first C function for postgres and failing miserably. my C > function needs to get passed a username (char) , uid(int), and gid(int) and right, wrong and wrong. char *, uid_t, gid_t. -- -Alfred Perlstein

[GENERAL] C functions, arguments, and ssh oh my!

2001-03-27 Thread Joel Dudley
Hello All, I am writing my first C function for postgres and failing miserably. my C function needs to get passed a username (char) , uid(int), and gid(int) and what it does with those is builds a command string for an external app that is called with system() and exits 0. I know this is strange