Hi,
I need to find the storage capacity of warehouse present on the remote server.
My requirements are:
1)Connect to the remote server
2)Change the directory to particular directory and
3)Know the capacity of warehouse.
Say my commands are:
1)cd /server/warehouse
2)df -k warehouse44
How do I execute above commands on remote server.
When I use
ssh
tucs_123@xyz.com 'cd /server/warehouse|df -k warehouse44'
I get message:
df: (warehouse44) not a block device, directory or mounted resource