No.
I have tried this, but this method checks directory existance on local server, but not on remote one.
I think - checking must be via "expect", or other way..
?????
I'v made a script for remote file backup
I need to check if directory ($TMPDIR) exists..
How can I check it in script?
My script
#!/usr/bin/expect -f
set timeout 100
set PASS ""
set USER "root"
set IPSERV ""
set BackupDirectories "/home/test1 /home/test2"
set TMPDIR "/home/backup5"
spawn ssh...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.