I want to set the number of a particular process that are running to a variable. The first line of the csh script below is the problem as it sets the variable "number" as ps aux | grep -c fiji
instead of the output of ps aux | grep -c fiji
which should be 1.
#!/bin/csh
set number = 'ps aux | grep -c fiji'
if ( $number <= 1 ) then
(I run a command here)
else
echo $number
endif