infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
ksh help - hcidbdump cmd
Peter Heggie
I can't seem to get my hcidbdump command to work when generated from a ksh script. It complains about extra characters after the quote. Any clues?
script:
HCICMD="hcidbdump -e -O i"
echo HCICMD = $HCICMD
# if time window specified, calculate start time = current time - window
if [ $WINFLAG -eq 1 ]
then
calc_start_time
QUOTE="""
HCICMD="${HCICMD} -S ${QUOTE}${STARTTIME}${QUOTE}"
echo HCICMD = $HCICMD
fi
# call hcidbdump command
${HCICMD}
RC=$?
output:
HCICMD = hcidbdump -e -O i
HCICMD = hcidbdump -e -O i -S "20110406 144002"
Unable to convertclock datestring "20110406: extra characters after close-quote
command completed with code 64
If I type that same command I see on the echo statement, it works fine:
[hci@aixhaserv]:/home/hci/scripts> hcidbdump -e -O i -S "20110406 145628"
C
l T
a y F
s p w
Created Message Id s e d Prio State Length Source Dest
- - - ----
18:48:41 [0.0.2089948] E D N 5120 300 1186 grv3_tcp_in to_lumedx_adtor
18:47:22 [0.0.2098812] E D N 5120 300 1186 grv3_tcp_in to_lumedx_adtor
Done. 2 messages selected.
So I guess its the script, but I'm scratching my head. Is my assignment statement wrong?
Pete
Find more posts tagged with
Clovertech
Comments
david_barr
Try replacing the line that says "${HCICMD}" with "eval ${HCICMD}".
Peter Heggie
when in doubt, use eval??
HCICMD = hcidbdump -e -O i
HCICMD = hcidbdump -e -O i -S "20110406 154656"
C
l T
a y F
s p w
Created Message Id s e d Prio State Length Source Dest
- - - ----
18:48:41 [0.0.2089948] E D N 5120 300 1186 grv3_tcp_in to_lumedx_adtor
18:47:22 [0.0.2098812] E D N 5120 300 1186 grv3_tcp_in to_lumedx_adtor
Done. 2 messages selected.
command completed with code 0
thank you! works great!!!!
its nice to get a quick response too.
Pete