Hi,
I have one script that uses onstat results as arguments, on bash I am veryfing one issue.
As INFORMIXDIR appears on some variables they are not resolved by shell
#!/bin/bash
ONLINELOG=$(onstat -c | grep "^MSGPATH")
grep "Something" "$ONLINELOG"
returns
grep: MSGPATH $INFORMIXDIR/tmp/online.log: No such file or directory
The variables are defined and loaded into the environment, however $INFORMIXDIR appears as a string
I am using CentOS 8.6 and bash 4.4.20
Thanks for any help
SP
------------------------------
Sergio Peres
AIRC
Coimbra
------------------------------
#Informix