<br>
<br><br><div class="gmail_quote">On Mon, May 30, 2011 at 1:52 PM, Dave Mason <span dir="ltr"><<a href="mailto:dmason-bqArmZWzea/GcjXNFnLQ/w@public.gmane.org">dmason@sarg.ryerson.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
On May 30, 2011, at 12:54, Lennart Sorensen wrote:<br>
<br>
> On Sat, May 28, 2011 at 10:01:11AM -0400, Kevin Cozens wrote:<br>
>> If the ftp daemon is spawned using inetd you could configure inetd<br>
>> to run a shell script instead which would do the prelogin stuff, run<br>
>> sftpd, then run other things after sftpd terminates. If sftpd is<br>
>> running all the time, this won't work.<br>
><br>
> sftp is not a daemon, it is a subsystem of sshd. It works over an<br>
> ssh connection, but not using the shell.<br>
<br>
</div>Indeed. You could move the sftp executable and put a shell script in its place that did what you wanted and then called sftp. You'd probably need to use trap(1) if you want to do anything after the real sftp is done, as the connection may have dropped, etc.<br>
</blockquote><div><br>Thanks everyone. You've given me something to go on.<br><br>Cheers,<br clear="all"><div><br>Randy<br>
</div><div><span style="word-spacing: 0px;"><font color="#993300" face="Comic
Sans MS" size="4"><span style="font-family: 'Comic Sans MS'; color: rgb(153, 51, 0); font-size: 13.5pt; font-weight: bold;"><br></span></font></span><font style="font-family: comic sans ms,sans-serif;"><b>It
is evidence of an ambitious and presumptuous brain, full of vanity and
envy, to wish to persuade others that there is but a single way of
investigating and coming to the knowledge of nature; and of a fool and
a man without judgement to believe he possesses it.- Giordano Bruno </b></font></div> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<font color="#888888"><br>
../Dave<br>
</font><div><div></div><div class="h5"><br>
--<br>
The Toronto Linux Users Group. Meetings: <a href="http://gtalug.org/" target="_blank">http://gtalug.org/</a><br>
TLUG requests: Linux topics, No HTML, wrap text below 80 columns<br>
How to UNSUBSCRIBE: <a href="http://gtalug.org/wiki/Mailing_lists" target="_blank">http://gtalug.org/wiki/Mailing_lists</a><br>
</div></div></blockquote></div><br>