Search Results

Search: Posts Made By: starlatch
6,912
Posted By starlatch
Polling for existence of file on remote host
I am polling a file on remote host. I have this code that works, but can't explain why it works.
while [ -f `ssh user@remote.no-exist.com 'ls /user/app1/.done'` ]
do
echo [INFO] Sleeping for 5...
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 12:18 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy