put ./submit into pegasus_wait.sh