cmd not found , issue in variable
Hi All,
Not able to execute the cmds without the fullpath. Given the screen shot here. Let me know if there any settings issue.
[root@server152 ibm]# cat 1.sh
-bash: cat: command not found
[root@server152 ibm]# which cat
/usr/bin/which: no cat in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin ;:/root/bin)
[root@server152 ibm]# /bin/cat 1.sh
a=1
b=2
c=`expr $a + $b`
echo $c
[root@server152 ibm]#
|