Subject: ftpconversions with 'put'

From: "Kevin M. Mello" <[email-masked]>
Date: Mon, 29 Apr 1996 18:27:57 -0400 (EDT)

A client of ours would like to auto-decompress mac (.sit) files which are
uploaded (ftp) to an NFS mounted mac-readable volume.  This would allow 
in-house mac users seamless access to trusted client uploads.

I have a number of unix utilities to un-sit (.sit), un-binhex (.hqx) etc.

I'm now stuggling with how to automate this decompression process... 

Unfortunetly the ftpconversions goodie with wu-ftpd works only with get.

I suppose I could write a script (cron) that does the decompression, but
how do I know when the upload is done ?

Has anyone done anything like this?

Please, send ideas.

I'll post a solutions message.

thanks in advance,
kevin

+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
[ Kevin M. Mello (Director of Computing)  fax: 603.334.6457     ]
] Rocket Science Computer Services INC  voice: 603.334.6444     [
[ [InterNETworking solutions]            beep: 603.385.6243     ]
] 601 Spaulding Tpk.                    Email: [email-masked] [
[ Suite 40, Portsmouth, NH 03801 USA     http://www.rscs.net    ]
+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+

---

From: "W. James Showalter" <[email-masked]>
Date: Sun, 28 Apr 1996 21:26:32 -0400 (EDT)

Kevin,

I have not had this requirement but one possibility is to write a program
or script to parse the transfer log file (xferlog). I am assuming that the
final entry for whatever is being uploaded is not written until the upload
is done (since # of bytes is logged).  Thus, you could use the contents of
that file as a source of info.  The program mentioned above would need to
call the appropriate conversion routines as necessary.  You might have to
maintain your own file of information to keep track of old vs new entries as 
they appear in the transfer log. 

Jim

---

From: David Smith <[email-masked]>
Date: Tue, 30 Apr 1996 08:57:54 -0500 (CDT)

> I have a number of unix utilities to un-sit (.sit), un-binhex (.hqx) etc.

Note that un-sit only decompressed old style .sit file (Stuffit 1.5.1) 
and not Stuffit Lite/Sutffit Deluxe files.  There is also a .cpt 
decompresser but nothing that I know of on the unix side can deal with 
new style stuffit archives.
 
> I'm now stuggling with how to automate this decompression process... 

How about using Stuffit Expander to automaticlly check that directory 
every so often and decompress anything in it?  I'm not sure what your 
using to serve your directory but un-sit creates files designed to be put 
together as a macbinary file for downloading.  They might work if you 
rename them and put them in the right places in a CAP directory structure 
but wouldn't work in any other UNIX<->Structures I know of.

-----------------------------------------------------------------------
David A. Smith                          | Baylor College of Medicine
Systems Services                        | Enterprise Services, MEDT1103
(713) 798-8469                          | One Baylor Plaza
Internet:  [email-masked]            | Houston, TX  77030