Devinder Singh Virdi
asked on
Before FTP, I want to see mount point and free space of remote box
Hi,
I am working in very simple script in which i am transfering couple of files from source machine to target. For that I am using ftp in Sun-Solaris. I want to know free space availabe in target machine before transfering these files.
I am working in very simple script in which i am transfering couple of files from source machine to target. For that I am using ftp in Sun-Solaris. I want to know free space availabe in target machine before transfering these files.
before you ftp, you may run a remote command via ssh:
ssh user@remotesys "df -k"
then you may capture the out put and based on results, ftp to transfer files.
ssh user@remotesys "df -k"
then you may capture the out put and based on results, ftp to transfer files.
ASKER
Hi Omarfarid,
Is there any way that system should not ask for password again and again, because i have to use this statement in loop. Sorry I am not Unix person.
Is there any way that system should not ask for password again and again, because i have to use this statement in loop. Sorry I am not Unix person.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window