Previously I was able to use this command on my different linux machine. Now I am getting the error.
script name : asim.sh
Contents in asim.sh :
#!/bin/bash
sh $path/run.sh |& tee $path/output_T0/logT0;
val1=0094827D
val2=$((16#$val1))
echo $0
ps -p $$
Command on terminal
sh asim.sh
Error output
Syntax error: "&" unexpected
PID TTY TIME CMD
3126 pts/9 00:00:00 sh
Verifying the default shell
> echo $shell --> /bin/tcsh
I am expecting it to be related to shell but I am unable to root cause this issue. These issues are visible only because of changing my linux machine, as everything seems to be working fine on previous linux machine.
If anyone have debug similar issue, please help. I have already compared the linux shell with old linux machine it is same.