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

[LDM #PJU-328972]: pqact.conf question



>> Can you give me 1 or 2 examples of the PIPE script in action?

The most straight forward example:

-- cut here begin --
#!/bin/bash
# pqact example:
# NGRID .*
# PIPE -close /data/myfilename
if [ -s /etc/profile ]; then
  source /etc/profile
fi

basedir="${1}"
myuuid=`uuidgen`

cat > ${basedir}.${myuuid}
-- cut here end --

A more elaborate example, so you can place the uuid within a configuration from 
pqact:
#!/bin/bash
# pqact example:
# NGRID .*
# PIPE -close /data/myfilename.UUID.mysuffix
if [ -s /etc/profile ]; then
  source /etc/profile
fi

basedir="${1}"
myuuid=`uuidgen`
myoutput=`echo "${basedir} | sed -e "s/UUID/${myuuid}/g"`

cat > ${myoutput}
-- cut here end --


Ticket Details
===================
Ticket ID: PJU-328972
Department: Support LDM
Priority: Normal
Status: Open
===================
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.