How about : remote echo ![finfo("afile","exists")] > tempf1 remote print tempf1 dscopy tempf1,NODE1 input a,<tempf1 if a = "FALSE " then echo file exists endif