At 1:43 PM -0600 11/30/01, Joshua Kaufman wrote: >I'm interested in using Wilfredo Sanchez's DropScript to make some >of my perl scripts available to users who prefer not to use the >command line. > >How are the names of the dropped files passed to the script? For >example, when I make the following script into a 'droplet' it >silently fails to even create the log file. Are the file names not >passed to @ARGV? are there permissions issues? >
Not having tried it, but I suspect that DropScript calls a shell directly, passing the shell-style $1..$9 arguments. So you might want to use something like: exec perl -S $0 "$@"' .... as the first line of the script. (Or maybe I'm completely wrong.) --Sandy > ><script> > >#!/usr/bin/perl -w > >use strict; > >open LOG, ">log.txt" or die "can't open the logfile $!"; > > >for (@ARGV) { >print LOG "$_\n";} > > ></script> > >--