Re: Alternative Data Transport In Big Brother?
"Richard Finegold" <[email protected]> Thu, 24 Apr 2003 19:03:12 -0700
| Newsgroups | gmane.network.bb4.devel |
|---|---|
| Message-ID | <[email protected]> |
As far as polling goes (if that's what you do), if it's anything like Unix, you might be able to avoid polling with something like: tail -f /var/log/messages | grep " ftpd\[.*\]: FTP session closed" but I don't know how less expensive (if at all) that would be over polling. Hmm, something like this should work (last two lines untested) Warning: filename collisions still might occur; milliseconds? #!/bin/sh #bb command via ftp OLDIFS=$IFS;IFS=' ';filename=$BBTMP/$1.$$.`date +%s` #Unique? for line in $2; do #1-step splice? IFS=$OLDIFS echo $line>>$filename done ncftpput remote-host remote-dir $filename if [ $? -eq 0 ]; then rm $filename ; fi #cron sends undelivered >>> [email protected] 4/24/2003 08:29:17 >>> Thanks for the info. Modifying bbfetch still seems like my best bet. The real trouble here is that in most cases, I have oneway ftp access available to me, and that is from the hospital back to my central server. Almost all of the external scripts/modifications to BB that allow this type of thing use a pull methodology originating from the central server. I need to create a push method where the central server just routinely polls for new information that has come in. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-= To unsubscribe from this list send e-mail to mailto:[email protected] with unsubscribe bbd in the BODY of the message.