I am trying to do the following in ksh but keep getting cannot stat message for the cp command:
JMX_ROOT=/bfs-build/build-info/mep_mainline-Linux.latest/core/mainline/automation
SMOKE_JMX_LOCATION=$JMX_ROOT/"Smoke Set"/*.*
cp $SMOKE_JMX_LOCATION /var/tmp/tempor
Any ideas? I have tried putting quotes around the various variables but with no luck.
*.*. I don't know enough of the Korn shell, but in Bash, this would require arrays:SMOKE_JMX_LOCATION=("$JMX_ROOT/Smoke Set"/*.*)followed bycp "${SMOKE_JMX_LOCATION[@]}" /var/tmp/tempor. – janmoesen Oct 27 '11 at 13:18