[Swift-user] Problems reading file lists in swift

Mihael Hategan hategan at mcs.anl.gov
Wed Feb 24 11:23:35 CST 2010


On Wed, 2010-02-24 at 11:12 -0600, Mark Maienschein-Cline wrote:
> I'm having a couple problems calling programs I've written using
> swift.
> 
> The first happens for programs where one input is just a text file
> that is a list of filenames, and the program extracts each filename
> from the list and opens it for analysis. The programs assume each file
> is in the same directory as the list,

What would happen if you job ran on a remote site where your home
directory is named "/users/5/x554332"?

>  so it gets the directory used to identify the list as well, and adds
> it to the filename. When I run these on swift and refer to the list by
> the full path, swift doesn't seems to drop the first "/", so I have to
> add another one. e.g. "/home/mmaiensc/list" gets turned into
> "home/mmaiensc/list" and doesn't work, but "//home/mmaiensc/list" gets
> turned into "/home/mmaiensc/list" and works. Why is this?

That's a bug. Neither should work.

Can you post your swift file? It's hard to figure out exactly what a
solution would be without that. In principle, the file list needs to be
put in an array and (either individual files in it or the whole array)
that needs to be passed to the application such that swift can keep
track of files.

> 
> I'm also having a problem where swift fails, citing "Exit code 5" or
> "Exit code 10", but thet stdout it gives for the program I called
> indicates that it finished running correctly (I had it print "done" on
> the last line).

Do you have log files for that?

Is there any chance of the application both printing "done" and exiting
with a non-zero exit code?




More information about the Swift-user mailing list