[Swift-user] Argument list to long

Jonathan Monette jon.monette at gmail.com
Sun Oct 10 20:08:06 CDT 2010


  Ok.  Thanks.  That got it for me.

#!/bin/bash
"/home/jonmon/Library/Montage/bin/mProject" "-X 
raw_dir/2mass-atlas-000315s-j0330245.fits 
proj_dir/proj_2mass-atlas-000315s-j0330245.fits|header.hdr" 
1>"stdout.txt" 2>"stderr.txt"

Why is there at "|" right before the parameter header?  If I were to run 
this by hand in a shell, the command would be
/home/jonmon/Library/Montage/bin/mProject -X 
raw_dir/2mass-atlas-000315s-j0330245.fits 
proj_dir/proj_2mass-atlas-000315s-j0330245.fits header.hdr

Is this how it is supposed to be? I thought | in bash meant pipe output 
from left into whats on the right?

On 10/10/10 7:55 PM, Mihael Hategan wrote:
> On Sun, 2010-10-10 at 19:51 -0500, Jonathan Monette wrote:
>> This environment variable can be set to anything? As long as it is not
>> null? For instance in my login shell I can execute the command:
>> export SWIFT_GEN_SCRIPTS=1
>> and it will generate these run.sh?
> Not unless the jobs magically inherit your login environment.
>
> I.e., set it in sites.xml for each site you want this to work on.
>
>

-- 
Jon

Computers are incredibly fast, accurate, and stupid. Human beings are incredibly slow, inaccurate, and brilliant. Together they are powerful beyond imagination.
- Albert Einstein




More information about the Swift-user mailing list