Shell script to run Python program with command line arguments -


I have a directory that is an input file for my dragon script:

  & Lt; 1.in & gt; & Lt; 1.in.xml & gt; & Lt; 2.in & gt; & Lt; 2.in.xml & gt; & Lt; 3.in & gt; & Lt; 3.in.xml & gt; ... ..   

I have the following:

  $ i (in ls dir / *.) New = $ {i% %. } Test.py -i $ new.in.xml -o out_ $ new -x $ new.in -c 56 done   

When I run it, it will output an output file (Which is defined with the -o option) Error:

  IOError: [Errno 2] Any such file or directory   

Any suggestions?

Ensure that you open the file for output as an open file (file_name, 'w') Whether or not the file will be created.

Comments