[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[LDM #ITS-432484]: running python from pqact.conf



Carol,

What you want is doable. Just make sure that the file
"/home/ldm/iridium/IRDtext.py"
    1. Has the executable bit set; and
    2. Has something like
          #!/usr/bin/python
       as its first line

> Is there a way to directly run Python from a pqact entry or do you have
> to run a shell script to run the full python command?
> 
> For instance, I need to run "python /home/ldm/iridium/IRDtext.py" when a
> file is in the queue.
> 
> I'm trying to do the following...
> 
> EXP
> ANT\.AMRC\.AWS\.(.*)\.(....)(..)(..)\.txt
> PIPE    -close
> /home/ldm/iridium/IRDtext.py
> 
> I have the following entry to get the file in the correct location....
> which I can verify works correctly.
> 
> EXP
> ANT\.AMRC\.AWS\.(.*)\.(....)(..)(..)\.txt
> FILE    -overwrite
> /home/ldm/iridium/\1.txt

Regards,
Steve Emmerson

Ticket Details
===================
Ticket ID: ITS-432484
Department: Support LDM
Priority: Normal
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.