Exercise 3e: Using An External File
The queue command can read directly from an external file. If a file "argument.txt" is created and the commands will be passed to the executable from the contents of the txt file. The arguments.txt contains:
2 3
4 5
6 7
#!/usr/bin/env python
import sys
for arg in sys.argv[1:]:
        print arg
    executable              = script.py
    output                  = output/$(ClusterId).$(ProcId).out
    error                   = error/$(ClusterId).$(ProcId).err
    log                     = log/$(ClusterID).log
    queue arguments from arguments.txt
  executable              = script.py
  arguments               = "$(argument)"
  output                  = output/$(ClusterId).$(ProcId).out
  error                   = error/$(ClusterId).$(ProcId).err
  log                     = log/$(ClusterID).log
  queue  argument in H2, H3, H4, H5
  
    
      Last update: May 2, 2022