The alfi_ws Script (Unix only)


Description

The alfi_ws script is a perl script which will feed your environment variables and any command line arguments into Alfi, while starting Alfi via the standard WebStart mechanism.  It gets around the Java limitation of ignoring environment variables, and the WebStart limitation of ignoring command line arguments by writing a very temporary file to where Alfi will look on startup.  It also specifies Alfi's working directory to be your current working directory (i.e., the directory in which you executed the alfi_ws script.)

% alfi_ws COC.box GetSusData.box

Download and Configuration

Here is the alfi_ws perl script.  Just move it to the directory you wish to work in, and configure the first 2 lines as follows:
  1. Change "/usr/bin/perl" to the path of the perl installation on your machine.
    #!/usr/bin/perl -w
  2. Change "/usr/local/bin/javaws" to the path of the java_ws (Java Web Start executable) installation on your machine.
    my $WEBSTART = "/usr/local/bin/javaws";
  3. Don't change anything else in the script, but now change the execution mode of the alfi_ws file to be executable.
    % chmod +x alfi_ws
  4. It should now be ready to run...
    % alfi_ws