Difference in the following script
In my shell script when I use
ssh ans02 'su -c "/home/ansys_inc/v193/RSM/ARC/tools/linx64/arcnode status" arcuser exit'
but when I use it as follows it doesn't work
ssh ans02 'su -c "$PATH status" arcuser exit'
Any idea or what I need to change in the above script.