)I have confirmed my Linux command works in the terminal, however when I try to call it from python it breaks.

The command is a bit long and has lots of single quotes, so I wrapped it around three double quotes (""") so python can interpret as a raw string (or so I thought). However, when I run it I am getting

```
sh: -c: line 0: unexpected EOF while looking for matching `''
sh: -c: line 1: syntax error: unexpected end of file 

```

but I have double and tripple checked my single and double quotes and I have no idea where to go from here.

See the test script below

```
import os

os.system("""awk -F ' *[[:alnum:]_]*: *' 'BEGIN         {h="insert_job;box_name;command;owner;permission;condition;description;std_out_file;std_err_file;alarm_if_fail"; print h; n=split(h,F,/;/)} function pr() {if(F[1] in A) {for(i=1;i<=n;i++)printf "%s%s",A[F[i]],(i<n)?";":RS}} /insert_job/  {pr(); delete A} {for(i in F){if($0~"^"F[i])A[F[i]]=$2}} END           {pr()}' ./output/JILS/B7443_dev_jil_20140306104313.csv > /trvapps/autosys/admin/EPS/output/JILS/testout.txt""")

```

FYI I am using Python 2.4.3, hence why I am using os instead of subprocess.